otter
otter copied to clipboard
A high performance cache for Go
# Clarification and motivation I want to configure new instances of Cache using the functional options pattern instead of chained methods. ```Go cache, err := NewWithOptions( otter.WithDeletionListener(func(key string, value string,...
## Description It seems that DeletionListener doesn't always trigger for the explicit deletion scenario (through the Delete(key) function). While it seems like a bug, it could be me not using...
I wrote a demo for otter, and its results puzzled me. Otter uses the S3 FIFO eviction strategy, which works as shown in the following gif:  But in my...