Versions in this module Expand all Collapse all v1 v1.0.3 May 24, 2023 Changes in this version + type FIFOShardedCache struct + func NewShardedCache(size int, shards int) (*FIFOShardedCache, error) + func (c *FIFOShardedCache) Clear() + func (c *FIFOShardedCache) Close() error + func (c *FIFOShardedCache) Get(key []byte) (value interface{}, ok bool) + func (c *FIFOShardedCache) Has(key []byte) bool + func (c *FIFOShardedCache) HasOrAdd(key []byte, value interface{}, _ int) (has, added bool) + func (c *FIFOShardedCache) IsInterfaceNil() bool + func (c *FIFOShardedCache) Keys() [][]byte + func (c *FIFOShardedCache) Len() int + func (c *FIFOShardedCache) MaxSize() int + func (c *FIFOShardedCache) Peek(key []byte) (value interface{}, ok bool) + func (c *FIFOShardedCache) Put(key []byte, value interface{}, _ int) (evicted bool) + func (c *FIFOShardedCache) RegisterHandler(handler func(key []byte, value interface{}), id string) + func (c *FIFOShardedCache) Remove(key []byte) + func (c *FIFOShardedCache) SizeInBytesContained() uint64 + func (c *FIFOShardedCache) UnRegisterHandler(id string)