package tlru
import "git.sr.ht/~xn/cache/v2/tlru"
Index ¶
Types ¶
type TLRU ¶
TLRU - Time aware Least Recently Used cache
func New ¶
New TLRU cache
func (*TLRU[V]) Get ¶
Get an item from cache
func (*TLRU[V]) Has ¶
Has check if an item exists in cache, without useness update
func (*TLRU[V]) Purge ¶
func (c *TLRU[V]) Purge()
Purge cache
func (*TLRU[V]) Remove ¶
Remove an item from cache
func (*TLRU[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
- 3 hours ago –
Tools for package owners.