The highest tagged major version is
v5.
package
Version:
v1.6.2-docker-test1
Opens a new window with list of versions in this module.
Published: Mar 5, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewLRU(maxSize int, onEvict func(key string, v interface{})) *LRU
func (q *LRU) Clean(f func(key string, v interface{}) (remove bool)) (removed int)
type LRULike interface {
Add(key string, v interface{})
Del(key string)
Clean(f func(key string, v interface{}) (remove bool)) (removed int)
Get(key string) (v interface{}, ok bool)
Len() int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.