package lfu
import "git.sr.ht/~xn/cache/v2/lfu"
Index ¶
Types ¶
type LFU ¶
LFU - Least Frequently Used cache
func New ¶
New LFU cache
func (*LFU[V]) Get ¶
Get an item from cache
func (*LFU[V]) Has ¶
Has check if an item exists in cache, without useness update
func (*LFU[V]) Purge ¶
func (c *LFU[V]) Purge()
Purge cache
func (*LFU[V]) Remove ¶
Remove an item from cache
func (*LFU[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.