Skip to content
/ cache Public

memory cache lib in golang , designed for concurrent

Notifications You must be signed in to change notification settings

cocotyty/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Cache In Go

It has not bad performance:

BenchmarkRealTTLCache_Set 5000000 232 ns/op BenchmarkPatrickmnGoCache 2000000 713 ns/op

Easy To Use

c:=cache.NewCache(32)
c.Set("FOO","BAR",100*time.Millisecond)
if value,ok:=c.Get("FOO");ok{
    fmt.Println(value)
}
c.Clear("FOO")

About

memory cache lib in golang , designed for concurrent

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages