Documentation
¶
Index ¶
- type LRUCache
- func (c *LRUCache[K, V]) Capacity() int
- func (c *LRUCache[K, V]) Contains(key K) bool
- func (c *LRUCache[K, V]) Get(key K) (V, error)
- func (c *LRUCache[K, V]) Peek(key K) (V, error)
- func (c *LRUCache[K, V]) Remove(key K)
- func (c *LRUCache[K, V]) Set(key K, value V)
- func (c *LRUCache[K, V]) Size() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRUCache ¶
type LRUCache[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.