Documentation
¶
Overview ¶
This package implements a synchronized MRU (most recently used) map. Its a map that will hold at most cap key/value pairs and will evict entries if: 1) adding an element would exceed cap, in this case the oldest existing element is removed to make space for a new one. 2) an element's age exceeds maxage, the check is done when adding elements. Age is defined as the duration between now and the time the element was last accessed (added or looked up).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func (*Map) LookupAndTouch ¶
Click to show internal directories.
Click to hide internal directories.