The highest tagged major version is
v5.
package
Version:
v4.2.1
Opens a new window with list of versions in this module.
Published: Jan 26, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 20
Opens a new window with list of known importers.
Documentation
¶
New creates an LRU of the given size.
func NewWithEvict(size int, onEvicted func(key interface{}, value interface{})) *lru.Cache
NewWithEvict constructs a fixed size cache with the given eviction
callback.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.