Documentation
¶
Index ¶
- Variables
- type LRUCache
- func (c *LRUCache) Apply(fun func(k interface{}, v interface{}) error) error
- func (c *LRUCache) EntriesCount() int
- func (c *LRUCache) Get(key interface{}) (interface{}, error)
- func (c *LRUCache) Pop(key interface{}) (interface{}, error)
- func (c *LRUCache) Put(key interface{}, value interface{}) (rkey interface{}, rvalue interface{}, err error)
- func (c *LRUCache) Replace(k interface{}, v interface{}) (interface{}, error)
- func (c *LRUCache) Resize(size int)
- func (c *LRUCache) Size() int
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrIllegalArguments = errors.New("illegal arguments")
View Source
var ErrIllegalState = errors.New("illegal state")
View Source
var ErrKeyNotFound = errors.New("key not found")
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.