Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface { Add(key, value interface{}) Get(key interface{}) (value interface{}, ok bool) Remove(key interface{}) }
Cache stores the items you can use ARCCache or TwoQueueCache from github.com/hashicorp/golang-lru
type LoadFunc ¶
type LoadFunc func(key interface{}) (interface{}, error)
LoadFunc loads the value based on key
Click to show internal directories.
Click to hide internal directories.