Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct { OnEvicted func(key string, value cache.Valuer) // (可选)移除缓存中某条记录时执行 // contains filtered or unexported fields }
func NewLRUCache ¶
NewLRUCache 创建LRUCache
Click to show internal directories.
Click to hide internal directories.