Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache struct {
// contains filtered or unexported fields
}
LRUCache is a least-recently-used cache for any type that's able to be indexed by Hash
type LRUIDCache ¶
type LRUIDCache struct {
// contains filtered or unexported fields
}
func NewLRUIDCache ¶
func NewLRUIDCache(capacity int, preallocate bool) *LRUIDCache
func (*LRUIDCache) Add ¶
func (c *LRUIDCache) Add(key uint64, value interface{})
func (*LRUIDCache) Get ¶
func (c *LRUIDCache) Get(key uint64) (interface{}, bool)
func (*LRUIDCache) Has ¶
func (c *LRUIDCache) Has(key uint64) bool
func (*LRUIDCache) Remove ¶
func (c *LRUIDCache) Remove(key uint64)
Click to show internal directories.
Click to hide internal directories.