golang-lru 0,0,1,0

Golang LRU cache

golang-lru

This provides the lru package which implements a fixed-size thread safe LRU cache. It is based on the cache in Groupcache.

Documentation

Full docs are available on Godoc

Example

Using the LRU is very simple:

l, _ := New(128)
for i := 0; i < 256; i++ {
    l.Add(i, nil)
}
if l.Len() != 128 {
    panic(fmt.Sprintf("bad len: %v", l.Len()))
}

Related Repositories

golang-lru

golang-lru

Golang LRU cache ...

gcache

gcache

Cache library for golang. It supports expirable Cache, LFU, LRU and ARC. ...

ccache

ccache

A golang LRU Cache for high concurrency ...

ttlcache

ttlcache

An in-memory LRU string-interface{} map with expiration for golang ...

ttlcache

ttlcache

an in-memory LRU string-string map with expiration for golang ...


Top Contributors

armon mreid-moz mdmarek dkumor client9 shawnps sean- blopker Dieterbe sciolizer rgbkrk ryanuber alexanderGugel dankinder yuokada