Skip to content

krakend/lru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

lru

A simple LRU cache implementation that also evicts elements when an specific size threshold is met

Usage

go get github.com/krakend/lru
maxSize := (1024 * 1024 * 100) // 100 MB
maxItems := 100000

cache, err := lru.NewLruCache(maxSize, maxItems)

cache.Set("key1", "value")

value, exists := cache.Get("key1")

cache.Delete("key1")

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages