Documentation
¶
Index ¶
- type Cache
- type ShardedCache
- type TwoQueue
- func (c *TwoQueue[K, V]) Contains(key K) bool
- func (c *TwoQueue[K, V]) Del(key K)
- func (c *TwoQueue[K, V]) Get(key K) (V, bool)
- func (c *TwoQueue[K, V]) Keys() []K
- func (c *TwoQueue[K, V]) Len() int
- func (c *TwoQueue[K, V]) Peek(key K) (V, bool)
- func (c *TwoQueue[K, V]) Purge()
- func (c *TwoQueue[K, V]) Set(key K, value V)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShardedCache ¶
func NewShardedCache ¶
func (*ShardedCache[K, V]) Del ¶
func (sc *ShardedCache[K, V]) Del(key K)
func (*ShardedCache[K, V]) Get ¶
func (sc *ShardedCache[K, V]) Get(key K) (V, bool)
func (*ShardedCache[K, V]) Len ¶
func (sc *ShardedCache[K, V]) Len() int
func (*ShardedCache[K, V]) Set ¶
func (sc *ShardedCache[K, V]) Set(key K, value V)
type TwoQueue ¶
type TwoQueue[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.