stretto
stretto copied to clipboard
Stretto is a Rust implementation for Dgraph's ristretto (https://github.com/dgraph-io/ristretto). A high performance memory-bound Rust cache.
Code below may freeze on `wait()` call. It happens most of the time for me (macOS). ```rust use async_std::task; use stretto::AsyncCache; fn main() { let max_cost = 10_000; let lru...
Async Caches benefit from being able to ensure that - if a value is not currently cached - a future imminently fulfilling the entry will be passed to the other...
I am using the AsyncCache and have entries that I do not want to expire and use the try_insert() method. I am seeing these properties being removed from the cache...
Under some pressure, we start seeing this and the cache stops adding new entries. Any guidelines on troubleshooting this?
It's great that with your lib i can do such things ```rust lazy_static! { static ref CACHE: Cache = { let cache = Cache::new(12000, 1e6 as i64).unwrap(); cache }; }...
As mentioned in https://github.com/al8n/stretto/issues/50 question 1, the unused Borrow trait requirements are removed. Some other code is aligned using rustfmt --edition 2021
As the (ri)stretto algorithm does not **store/modify** the key, it should also be able to only borrow it? The lifetime of this borrow should therefore only resemble or exceed the...
This crate was developed when I started learning Rust. At the time, I did not have a deep understanding about: 1. The difference between Rust and Go, in sync Rust,...
Hi folks, not sure it's a bug but I can't figure out otherwise. We got a cache based on `stretto` (sync API) in our service with simple semantics: * `try_insert_with_ttl()`...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3.1.1 to 3.1.4. Release notes Sourced from codecov/codecov-action's releases. 3.1.4 What's Changed build(deps-dev): bump @types/node from 18.15.12 to 18.16.3 by @dependabot in codecov/codecov-action#970 Fix typo in README.md...