Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLRUCache ¶
func NewLRUCache(maxSize int64) *lruCache
Types ¶
type MaxMemoryPolicy ¶
type MaxMemoryPolicy int
const ( VOLATILE_LRU MaxMemoryPolicy = 1 VOLATILE_RANDOM MaxMemoryPolicy = 2 ALLKEYS_LRU MaxMemoryPolicy = 3 ALLKEYS_RANDOM MaxMemoryPolicy = 4 )
Click to show internal directories.
Click to hide internal directories.