Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
llhuii 619239524e | 3 years ago | |
---|---|---|
.. | ||
simplelru | 3 years ago | |
.gitignore | 3 years ago | |
2q.go | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
arc.go | 3 years ago | |
doc.go | 3 years ago | |
go.mod | 3 years ago | |
lru.go | 3 years ago |
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()))
}
No Description
Go Python Text Shell Markdown other
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》