Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictionStrategy ¶
type EvictionStrategy interface { Get(key string) (value Value, exist bool) Set(key string, val Value) Del(key string) (success bool) Len() int }
func NewLRUStrategy ¶
func NewLRUStrategy(maxSize int64) EvictionStrategy
Click to show internal directories.
Click to hide internal directories.