Other language versions
Introduction
A data collection trigger based on the maximum number and refresh time.
scenes to be used:
- Aggregate logs, output regularly and quantitatively.
- Aggregate large amounts of MQ data and merge processing.
- For a large number of update requests, you can update the cache first, and then merge and refresh the db.
- ...All operations that require aggregation, throttling, etc. can be used.
Basic usage
see tests
extern crate lazy_static;
use ;
use LevelFilter;
use ;
lazy_static!
output:
[1, 2, 3]
[4, 5]
Features
This project is still under development. The following features with the check marks are supported.
If you are concerned about an unimplemented feature, please tell me and I will finish writing it ASAP.
- Trigger timing based on quantity
- Trigger based on delay timing (each element can be stored in the container for the maximum time)
- Various types of containers
- Local container storage
- Remote Container Storage (redis)
- You can specify the asynchronous version of runtime
- async-std
- tokio
License
Licensed under either of
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions