Documentation ¶
Index ¶
- type CCache
- func (c *CCache) Add(key lru.Key, value interface{})
- func (c *CCache) Clear()
- func (c *CCache) Get(key lru.Key) (value interface{}, ok bool)
- func (c *CCache) GetRemove(key lru.Key) (value interface{}, ok bool)
- func (c *CCache) Len() int
- func (c *CCache) Remove(key lru.Key)
- func (c *CCache) RemoveOldest()
- func (c *CCache) SetMaxEntries(maxEntries int)
- func (c *CCache) SetOnEvicted(onEvicted func(key lru.Key, value interface{}))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CCache ¶
type CCache struct {
// contains filtered or unexported fields
}
concurrent safe lru cache
func (*CCache) RemoveOldest ¶
func (c *CCache) RemoveOldest()
func (*CCache) SetMaxEntries ¶
func (*CCache) SetOnEvicted ¶
Click to show internal directories.
Click to hide internal directories.