Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
func NewLRUCache ¶
NewLRUCache returns a new, empty LRUCache
func (*LRUCache) Add ¶
Add adds a key-value pair to LRU cache, true if eviction occurs, false if not
func (*LRUCache) EnlargeCapacity ¶
EnlargeCapacity enlarges the capacity of cache
Click to show internal directories.
Click to hide internal directories.