SYMBOL INDEX (211 symbols across 17 files) FILE: arc/arc.go function init (line 12) | func init() { function New (line 17) | func New(cap int) libcache.Cache { type arc (line 27) | type arc struct method Load (line 35) | func (a *arc) Load(key interface{}) (value interface{}, ok bool) { method Store (line 46) | func (a *arc) Store(key, val interface{}) { method StoreWithTTL (line 50) | func (a *arc) StoreWithTTL(key, val interface{}, ttl time.Duration) { method replace (line 93) | func (a *arc) replace(key interface{}) { method Delete (line 104) | func (a *arc) Delete(key interface{}) { method Update (line 111) | func (a *arc) Update(key, value interface{}) { method Peek (line 118) | func (a *arc) Peek(key interface{}) (value interface{}, ok bool) { method Expiry (line 125) | func (a *arc) Expiry(key interface{}) (time.Time, bool) { method Purge (line 132) | func (a *arc) Purge() { method Resize (line 139) | func (a *arc) Resize(size int) int { method SetTTL (line 145) | func (a *arc) SetTTL(ttl time.Duration) { method TTL (line 150) | func (a *arc) TTL() time.Duration { method Len (line 155) | func (a *arc) Len() int { method Keys (line 159) | func (a *arc) Keys() []interface{} { method Cap (line 163) | func (a *arc) Cap() int { method Contains (line 168) | func (a *arc) Contains(key interface{}) bool { method RegisterOnEvicted (line 172) | func (a *arc) RegisterOnEvicted(f func(key, value interface{})) { method RegisterOnExpired (line 177) | func (a *arc) RegisterOnExpired(f func(key, value interface{})) { method Notify (line 182) | func (a *arc) Notify(ch chan<- libcache.Event, ops ...libcache.Op) { method Ignore (line 187) | func (a *arc) Ignore(ch chan<- libcache.Event, ops ...libcache.Op) { method GC (line 192) | func (a *arc) GC() time.Duration { function min (line 207) | func min(x, y int) int { function max (line 214) | func max(x, y int) int { FILE: arc/arc_test.go function TestARCc (line 9) | func TestARCc(t *testing.T) { FILE: cache.go constant Read (line 14) | Read = internal.Read constant Write (line 15) | Write = internal.Write constant Remove (line 16) | Remove = internal.Remove type Cache (line 26) | type Cache interface function GC (line 98) | func GC(ctx context.Context, cache Cache) { type cache (line 137) | type cache struct method Load (line 145) | func (c *cache) Load(key interface{}) (interface{}, bool) { method Peek (line 152) | func (c *cache) Peek(key interface{}) (interface{}, bool) { method Update (line 159) | func (c *cache) Update(key interface{}, value interface{}) { method Store (line 165) | func (c *cache) Store(key interface{}, value interface{}) { method StoreWithTTL (line 171) | func (c *cache) StoreWithTTL(key interface{}, value interface{}, ttl t... method Delete (line 177) | func (c *cache) Delete(key interface{}) { method Keys (line 183) | func (c *cache) Keys() []interface{} { method Contains (line 190) | func (c *cache) Contains(key interface{}) bool { method Purge (line 197) | func (c *cache) Purge() { method Resize (line 203) | func (c *cache) Resize(s int) int { method Len (line 210) | func (c *cache) Len() int { method Cap (line 217) | func (c *cache) Cap() int { method TTL (line 224) | func (c *cache) TTL() time.Duration { method SetTTL (line 231) | func (c *cache) SetTTL(ttl time.Duration) { method RegisterOnEvicted (line 237) | func (c *cache) RegisterOnEvicted(f func(key, value interface{})) { method RegisterOnExpired (line 243) | func (c *cache) RegisterOnExpired(f func(key, value interface{})) { method Notify (line 249) | func (c *cache) Notify(ch chan<- Event, ops ...Op) { method Ignore (line 255) | func (c *cache) Ignore(ch chan<- Event, ops ...Op) { method Expiry (line 261) | func (c *cache) Expiry(key interface{}) (time.Time, bool) { method GC (line 268) | func (c *cache) GC() time.Duration { FILE: cache_test.go function TestCacheStore (line 58) | func TestCacheStore(t *testing.T) { function TestCacheStoreWithTTL (line 68) | func TestCacheStoreWithTTL(t *testing.T) { function TestCacheLoad (line 81) | func TestCacheLoad(t *testing.T) { function TestCacheDelete (line 93) | func TestCacheDelete(t *testing.T) { function TestCachePeek (line 104) | func TestCachePeek(t *testing.T) { function TestCacheContains (line 121) | func TestCacheContains(t *testing.T) { function TestCacheUpdate (line 137) | func TestCacheUpdate(t *testing.T) { function TestCachePurge (line 155) | func TestCachePurge(t *testing.T) { function TestCacheResize (line 169) | func TestCacheResize(t *testing.T) { function TestCacheKeys (line 182) | func TestCacheKeys(t *testing.T) { function TestCacheCap (line 194) | func TestCacheCap(t *testing.T) { function TestCacheTTL (line 203) | func TestCacheTTL(t *testing.T) { function TestOnEvicted (line 213) | func TestOnEvicted(t *testing.T) { function TestExpiring (line 248) | func TestExpiring(t *testing.T) { function TestNotify (line 290) | func TestNotify(t *testing.T) { function TestCacheGC (line 325) | func TestCacheGC(t *testing.T) { function TestGC (line 342) | func TestGC(t *testing.T) { function BenchmarkCache (line 363) | func BenchmarkCache(b *testing.B) { FILE: fifo/fifo.go function init (line 11) | func init() { function New (line 16) | func New(cap int) libcache.Cache { type collection (line 21) | type collection struct method Move (line 25) | func (c *collection) Move(e *internal.Entry) {} method Add (line 27) | func (c *collection) Add(e *internal.Entry) { method Remove (line 32) | func (c *collection) Remove(e *internal.Entry) { method Discard (line 37) | func (c *collection) Discard() (e *internal.Entry) { method Len (line 45) | func (c *collection) Len() int { method Init (line 49) | func (c *collection) Init() { FILE: fifo/fifo_test.go function TestCollection (line 12) | func TestCollection(t *testing.T) { FILE: idle/idle.go function init (line 10) | func init() { function New (line 15) | func New(cap int) libcache.Cache { type idle (line 19) | type idle struct method Load (line 21) | func (idle) Load(interface{}) (v interface{}, ok bool) { re... method Peek (line 22) | func (idle) Peek(interface{}) (v interface{}, ok bool) { re... method Keys (line 23) | func (idle) Keys() (keys []interface{}) { re... method Contains (line 24) | func (idle) Contains(interface{}) (ok bool) { re... method Resize (line 25) | func (idle) Resize(int) (i int) { re... method Len (line 26) | func (idle) Len() (len int) { re... method Cap (line 27) | func (idle) Cap() (cap int) { re... method TTL (line 28) | func (idle) TTL() (t time.Duration) { re... method Expiry (line 29) | func (idle) Expiry(interface{}) (t time.Time, ok bool) { re... method GC (line 30) | func (idle) GC() (dur time.Duration) { re... method Update (line 31) | func (idle) Update(interface{}, interface{}) {} method Store (line 32) | func (idle) Store(interface{}, interface{}) {} method StoreWithTTL (line 33) | func (idle) StoreWithTTL(interface{}, interface{}, time.Duration) {} method Delete (line 34) | func (idle) Delete(interface{}) {} method Purge (line 35) | func (idle) Purge() {} method SetTTL (line 36) | func (idle) SetTTL(ttl time.Duration) {} method RegisterOnExpired (line 37) | func (idle) RegisterOnExpired(f func(key, value interface{})) {} method RegisterOnEvicted (line 38) | func (idle) RegisterOnEvicted(f func(key, value interface{})) {} method Notify (line 39) | func (idle) Notify(ch chan<- libcache.Event, ops ...libcache.Op) {} method Ignore (line 40) | func (idle) Ignore(ch chan<- libcache.Event, ops ...libcache.Op) {} FILE: internal/cache.go type Op (line 10) | type Op method String (line 20) | func (op Op) String() string { constant Read (line 14) | Read Op = iota + 1 constant Write (line 15) | Write constant Remove (line 16) | Remove constant maxOp (line 17) | maxOp type handler (line 33) | type handler struct method want (line 37) | func (h *handler) want(op Op) bool { method set (line 41) | func (h *handler) set(op Op) { method clear (line 45) | func (h *handler) clear(op Op) { type Collection (line 51) | type Collection interface type Event (line 61) | type Event struct method String (line 76) | func (e Event) String() string { type Entry (line 81) | type Entry struct type Cache (line 91) | type Cache struct method Load (line 101) | func (c *Cache) Load(key interface{}) (interface{}, bool) { method Peek (line 106) | func (c *Cache) Peek(key interface{}) (interface{}, bool) { method get (line 110) | func (c *Cache) get(key interface{}, peek bool) (interface{}, bool) { method Expiry (line 129) | func (c *Cache) Expiry(key interface{}) (t time.Time, ok bool) { method Store (line 138) | func (c *Cache) Store(key, value interface{}) { method StoreWithTTL (line 143) | func (c *Cache) StoreWithTTL(key, value interface{}, ttl time.Duration) { method Update (line 168) | func (c *Cache) Update(key, value interface{}) { method Purge (line 180) | func (c *Cache) Purge() { method Resize (line 195) | func (c *Cache) Resize(size int) int { method DelSilently (line 211) | func (c *Cache) DelSilently(key interface{}) { method Delete (line 218) | func (c *Cache) Delete(key interface{}) { method Contains (line 225) | func (c *Cache) Contains(key interface{}) (ok bool) { method Keys (line 231) | func (c *Cache) Keys() (keys []interface{}) { method Len (line 239) | func (c *Cache) Len() int { method Discard (line 244) | func (c *Cache) Discard() (key, value interface{}) { method removeEntry (line 253) | func (c *Cache) removeEntry(e *Entry) { method evict (line 264) | func (c *Cache) evict(e *Entry) { method emit (line 269) | func (c *Cache) emit(op Op, k, v interface{}, exp time.Time, ok bool) { method GC (line 293) | func (c *Cache) GC() time.Duration { method TTL (line 314) | func (c *Cache) TTL() time.Duration { method SetTTL (line 319) | func (c *Cache) SetTTL(ttl time.Duration) { method Cap (line 324) | func (c *Cache) Cap() int { method Notify (line 331) | func (c *Cache) Notify(ch chan<- Event, ops ...Op) { method Ignore (line 354) | func (c *Cache) Ignore(ch chan<- Event, ops ...Op) { method RegisterOnEvicted (line 372) | func (c *Cache) RegisterOnEvicted(fn func(key, value interface{})) { method RegisterOnExpired (line 378) | func (c *Cache) RegisterOnExpired(fn func(key, value interface{})) { function New (line 383) | func New(c Collection, cap int) *Cache { type expiringHeap (line 395) | type expiringHeap method Len (line 399) | func (cq expiringHeap) Len() int { method Less (line 403) | func (cq expiringHeap) Less(i, j int) bool { method Swap (line 407) | func (cq expiringHeap) Swap(i, j int) { method Push (line 412) | func (cq *expiringHeap) Push(c interface{}) { method Pop (line 417) | func (cq *expiringHeap) Pop() interface{} { FILE: lfu/lfu.go function init (line 11) | func init() { function New (line 16) | func New(cap int) libcache.Cache { type element (line 22) | type element struct type collection (line 28) | type collection method Len (line 30) | func (f collection) Len() int { method Less (line 34) | func (f collection) Less(i, j int) bool { method Swap (line 38) | func (f collection) Swap(i, j int) { method Push (line 44) | func (f *collection) Push(v interface{}) { method Pop (line 50) | func (f *collection) Pop() interface{} { method Discard (line 56) | func (f *collection) Discard() (e *internal.Entry) { method Move (line 60) | func (f *collection) Move(e *internal.Entry) { method Remove (line 66) | func (f *collection) Remove(e *internal.Entry) { method Add (line 72) | func (f *collection) Add(e *internal.Entry) { method Init (line 79) | func (f *collection) Init() { FILE: lfu/lfu_test.go function TestCollection (line 11) | func TestCollection(t *testing.T) { FILE: lifo/lifo.go function init (line 11) | func init() { function New (line 16) | func New(cap int) libcache.Cache { type collection (line 21) | type collection struct method Move (line 25) | func (c *collection) Move(e *internal.Entry) {} method Add (line 27) | func (c *collection) Add(e *internal.Entry) { method Remove (line 32) | func (c *collection) Remove(e *internal.Entry) { method Discard (line 37) | func (c *collection) Discard() (e *internal.Entry) { method Len (line 45) | func (c *collection) Len() int { method Init (line 49) | func (c *collection) Init() { FILE: lifo/lifo_test.go function TestCollection (line 12) | func TestCollection(t *testing.T) { FILE: lru/lru.go function init (line 11) | func init() { function New (line 16) | func New(cap int) libcache.Cache { type collection (line 21) | type collection struct method Move (line 25) | func (c *collection) Move(e *internal.Entry) { method Add (line 30) | func (c *collection) Add(e *internal.Entry) { method Remove (line 35) | func (c *collection) Remove(e *internal.Entry) { method Discard (line 40) | func (c *collection) Discard() (e *internal.Entry) { method Len (line 48) | func (c *collection) Len() int { method Init (line 52) | func (c *collection) Init() { FILE: lru/lru_test.go function TestCollection (line 12) | func TestCollection(t *testing.T) { FILE: mru/mru.go function init (line 11) | func init() { function New (line 16) | func New(cap int) libcache.Cache { type collection (line 21) | type collection struct method Move (line 25) | func (c *collection) Move(e *internal.Entry) { method Add (line 30) | func (c *collection) Add(e *internal.Entry) { method Remove (line 35) | func (c *collection) Remove(e *internal.Entry) { method Discard (line 40) | func (c *collection) Discard() (e *internal.Entry) { method Len (line 48) | func (c *collection) Len() int { method Init (line 52) | func (c *collection) Init() { FILE: mru/mru_test.go function TestCollection (line 12) | func TestCollection(t *testing.T) { FILE: policy.go constant IDLE (line 10) | IDLE ReplacementPolicy = iota + 1 constant FIFO (line 12) | FIFO constant LIFO (line 14) | LIFO constant LRU (line 16) | LRU constant LFU (line 18) | LFU constant MRU (line 20) | MRU constant ARC (line 22) | ARC constant max (line 23) | max type ReplacementPolicy (line 29) | type ReplacementPolicy method Register (line 35) | func (c ReplacementPolicy) Register(function func(cap int) Cache) { method Available (line 44) | func (c ReplacementPolicy) Available() bool { method New (line 50) | func (c ReplacementPolicy) New(cap int) Cache { method NewUnsafe (line 59) | func (c ReplacementPolicy) NewUnsafe(cap int) Cache { method String (line 68) | func (c ReplacementPolicy) String() string {