package
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Mar 26, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Cache struct {
OnEvicted func(key string, value Value)
}
Cache is LRU cahe. It is not safe for concurrent access.
Get look ups a key's value
func (c *Cache) RemoveOldest()
type Value interface {
Len() int
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.