cache
cache copied to clipboard
High performance resilient in-memory cache for Go
``` --- FAIL: TestFailover_Get_BackgroundUpdateMaxExpiration (0.03s) --- FAIL: TestFailover_Get_BackgroundUpdateMaxExpiration/*cache.ShardedMap (0.01s) failover_test.go:283: Error Trace: /home/runner/work/cache/cache/failover_test.go:283 Error: Not equal: expected: "second value" actual : "first value" Diff: --- Expected +++ Actual @@ -1...
This is not so important, but would be good to have usage counters transferred to allow better quality of eviction on new cache instances.
Recently added [`InvalidationIndex`](https://github.com/bool64/cache/blob/v0.4.2/invalidator.go#L51) is not covered by cache transfer routine, this can lead to invalidation issues on new instances.