Documentation ¶
Overview ¶
This package provides a simple LRU cache backed by boltdb It is based on the LRU implementation in groupcache: https://github.com/golang/groupcache/tree/master/lru
Index ¶
- Variables
- type Cache
- func (c *Cache) Action(name string, args ...interface{}) (map[string]*interface{}, error)
- func (c *Cache) Add(key string, value []byte) error
- func (c *Cache) AddMulti(data map[string][]byte) error
- func (c *Cache) Close()
- func (c *Cache) Debug(action string)
- func (c *Cache) Get(key string) (value []byte, err error)
- func (c *Cache) Len() int
- func (c *Cache) MultiGet(keys []string) (values map[string][]byte, err error)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginConfig = &boltlrucacheConfig{ done: make(chan struct{}), } )
Config ...
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.