Documentation ¶
Overview ¶
package lru implements an LRU queue.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRU ¶
type LRU struct {
// contains filtered or unexported fields
}
LRU is an LRU queue.
func (*LRU) Pop ¶
func (lru *LRU) Pop() interface{}
Pop pops out the least-recently-used key. It returns nil if no key exists.
Click to show internal directories.
Click to hide internal directories.