commit | ff8f6c969d733ea46290f5efc44a6b86da64e5d1 | [log] [tgz] |
---|---|---|
author | Eduardo Cáceres <eduherminio@users.noreply.github.com> | Tue May 07 12:02:21 2019 |
committer | Jeff Mitchell <jeffrey.mitchell@gmail.com> | Tue May 07 12:02:21 2019 |
tree | 692017589d9ad09004ddb802d99d015186e8ca6e | |
parent | 7087cb70de9f7a8bc0a10c375cb0d2280a8edf9c [diff] |
Fix typo: 'exsists' (#50)
This provides the lru
package which implements a fixed-size thread safe LRU cache. It is based on the cache in Groupcache.
Full docs are available on Godoc
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()))
}