Documentation
¶
Overview ¶
package glru encapsulates logic for the LRU cache.
Index ¶
Constants ¶
View Source
const DEFAULT_MAX_ITEMS = 10000
Variables ¶
View Source
var ErrKeyNotFound = errors.New("key not found")
ErrKeyNotFound is returned by Get method when the key is not found.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MaxItems int // Defaults to DEFAULT_MAX_ITEMS
}
Config is passed to New().
Click to show internal directories.
Click to hide internal directories.