Skip to content

Lrucache is an efficient cache library implemented by lru algorithm.

Notifications You must be signed in to change notification settings

idle-ape/lrucache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lrucache

Lrucache is an efficient cache library implemented by lru algorithm.

Usage:

// import lru cache library
import(
    "fmt"
    "github.com/idle-ape/lrucache/cache"
)

// initial a fixed size cache
lrucache := cache.NewCache(1000)

lruCache.Set("key", "value", 0)

fmt.Println(lruCache.Get("key"))

About

Lrucache is an efficient cache library implemented by lru algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages