commit | 6ce8a7443353151a95e1d2d74e0579bd4e5b92e5 | [log] [tgz] |
---|---|---|
author | Jeff Mitchell <jeffrey.mitchell@gmail.com> | Mon Nov 14 20:19:01 2022 |
committer | Jeff Mitchell <jeffrey.mitchell@gmail.com> | Mon Nov 14 20:19:01 2022 |
tree | 56c3e271d045103a2585ffa1a52d3f0b8c3c1ce0 | |
parent | 9353717c9fa401205cc5ea9f4f3edcea9d99b958 [diff] |
Update godoc link
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 Go Packages
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()))
}