Documentation ¶
Index ¶
- Variables
- type Cache
- type LRU
- type LRUCache
- func (c *LRUCache) Delete(key interface{})
- func (c *LRUCache) DeleteExpired()
- func (c *LRUCache) Get(key interface{}) interface{}
- func (c *LRUCache) Len() int
- func (c *LRUCache) Range() []interface{}
- func (c *LRUCache) Set(key interface{}, value interface{}, duration time.Duration)
- func (c *LRUCache) SetDefault(key interface{}, value interface{})
- func (c *LRUCache) SetDefaultWithUuidKey(value interface{}) (key string)
- func (c *LRUCache) SetWithUuidKey(value interface{}, duration time.Duration) (key string)
- type List
- type Node
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultDuration time.Duration = 0
Functions ¶
This section is empty.
Types ¶
type LRU ¶
type LRU struct {
// contains filtered or unexported fields
}
func (*LRU) MoveToFront ¶
func (l *LRU) MoveToFront(key interface{})
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func (*LRUCache) DeleteExpired ¶
func (c *LRUCache) DeleteExpired()
func (*LRUCache) SetDefault ¶
func (c *LRUCache) SetDefault(key interface{}, value interface{})
func (*LRUCache) SetDefaultWithUuidKey ¶
type List ¶
type List struct { Len int64 // contains filtered or unexported fields }
func (*List) DeleteHead ¶
func (l *List) DeleteHead() (data interface{})
func (*List) DeleteTail ¶
func (l *List) DeleteTail() (data interface{})
Click to show internal directories.
Click to hide internal directories.