ristretto icon indicating copy to clipboard operation
ristretto copied to clipboard

A high performance memory-bound Go cache

Results 65 ristretto issues
Sort by recently updated
recently updated
newest added

Please see [this duscussion](https://discuss.dgraph.io/t/provide-defaults-for-numcounters-and-bufferitems/9194) for a rationale for this suggestion. This change is [](https://reviewable.io/reviews/dgraph-io/ristretto/178)

updated go mod deps glog adds global flags so it is not a good library (adding to an existing program causes a panic if a flag name conflicts) --- This...

add option to always admit new items

This change is [](https://reviewable.io/reviews/dgraph-io/ristretto/228)

This change is [](https://reviewable.io/reviews/dgraph-io/ristretto/230)

Raised a [Discuss issue](https://discuss.dgraph.io/t/provide-interface-for-cache-methods-for-ease-of-testing/13622) for this topic, and providing the kind of interface I'm looking for to use in tests. --- This change is [](https://reviewable.io/reviews/dgraph-io/ristretto/288)

Before this change, calling Close on the cache while a Set call is in progress could occasionally result in a panic when the Set method tried to write to the...

For more context please see discussion https://discuss.dgraph.io/t/ristretto-0-1-0-pollutes-the-flags-namespace/14561 By reverting #263 not only is the number of dependencies this library has greatly reduced, but projects using this library will not unavoidably...

because numShards is power of two, so can use & operator for performance --- This change is [](https://reviewable.io/reviews/dgraph-io/ristretto/150)

Restore the configuration file for GitHub Actions --- This change is [](https://reviewable.io/reviews/dgraph-io/ristretto/177)