package lru
import "git.sr.ht/~xn/cache/v2/lru"
Index ¶
Types ¶
type LRU ¶
LRU - Least Recently Used cache
func New ¶
New LRU cache
func (*LRU[V]) Get ¶
Get an item from cache
func (*LRU[V]) Has ¶
Has check if an item exists in cache, without useness update
func (*LRU[V]) Purge ¶
func (c *LRU[V]) Purge()
Purge cache
func (*LRU[V]) Remove ¶
Remove an item from cache
func (*LRU[V]) Set ¶
Set an item to cache
Source Files ¶
- Version
- v2.1.0 (latest)
- Published
- Aug 29, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 1 day ago –
Tools for package owners.