This is a unofficial port of Leaf.
🏠 Homepage
Enabling the mysql
and runtime-tokio
feature:
```rust
use leaves::dao::mysql::MySqlLeafDao;
use leaves::LeafSegment;
use leaves::Result;
async main() -> Result<()> { let dao = Arc::new(MySqlLeafDao::new("mysql://...").await?); let mut service = LeafSegment::new(dao); service.init().await?; let tag = 1; for _ in 0..1000 { println!("{}", service.get(tag).await?); } } ```
200,000qps using a in-memory mock db (not strict benchmark)