type github.com/golang/groupcache/lru.Cache
11 uses
github.com/golang/groupcache/lru (current package)
lru.go#L23: type Cache struct {
lru.go#L47: func New(maxEntries int) *Cache {
lru.go#L48: return &Cache{
lru.go#L56: func (c *Cache) Add(key Key, value interface{}) {
lru.go#L74: func (c *Cache) Get(key Key) (value interface{}, ok bool) {
lru.go#L86: func (c *Cache) Remove(key Key) {
lru.go#L96: func (c *Cache) RemoveOldest() {
lru.go#L106: func (c *Cache) removeElement(e *list.Element) {
lru.go#L116: func (c *Cache) Len() int {
lru.go#L124: func (c *Cache) Clear() {
go.opencensus.io/trace
lrumap.go#L25: cache *lru.Cache
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |