Documentation ¶
Overview ¶
Package go-lru implements an LRU cache. It is based on the LRU implementation in groupcache: https://github.com/golang/groupcache/tree/master/lru
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEvictionCallback ¶
func WithExpiry ¶
func WithoutSync ¶
func WithoutSync() func(c *Cache)
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
func (*Cache) RemoveOldest ¶
func (c *Cache) RemoveOldest()
func (*Cache) UpdateElement ¶
Updates element's value without updating its "Least-Recently-Used" status
Click to show internal directories.
Click to hide internal directories.