Documentation ¶
Index ¶
- type CacheNode
- type LRUCache
- func (lru *LRUCache) Get(k interface{}) (v interface{}, ret bool, err error)
- func (lru *LRUCache) GetKeys(k interface{}, matchFunc func(cacheKey, k interface{}) bool) []interface{}
- func (lru *LRUCache) Remove(k interface{}) bool
- func (lru *LRUCache) Set(k, v interface{}) error
- func (lru *LRUCache) SetExpire(k, v interface{}, d time.Duration) error
- func (lru *LRUCache) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheNode ¶
type CacheNode struct {
Key, Value interface{}
Expiration int64
}
func (*CacheNode) NewCacheNode ¶
Click to show internal directories.
Click to hide internal directories.