This repo is based on the github.com/golang/groupcache/lru
package.
See https://github.com/golang/groupcache/tree/master/lru for more information.
Cache[Key, Value]
as a generic interface for the concrete cache implementations.
A naive LRU cache based on a linked list and a map.
A decorator wrapping a Cache[Key, Value]
with a sync.Locker
. It locks the container for every r/w operations.
A decorator wrapping a Cache[Key, Value]
with a RWMutex
-like locker. It locks the container with a readers-writer lock for reading and writing operations accordingly.
Shortcuts to create lock-wrapped LRU caches.