al8n / stretto

Stretto is a Rust implementation for Dgraph's ristretto (https://github.com/dgraph-io/ristretto). A high performance memory-bound Rust cache.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This library doesn't seem to work properly

phantomhker opened this issue · comments

  1. I created a sync cache with 6 max numbers and 3 max cost
  2. Set key-value to it and then call wait()
  3. Got key with None result
commented

By default, the cache will add internal cost according to the value, you need to use ignore_internal_cost. Please see
https://github.com/al8n/stretto#ignore_internal_cost.

By default, the cache will add internal cost according to the value, you need to use ignore_internal_cost. Please see https://github.com/al8n/stretto#ignore_internal_cost.

thanks for a lot