Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type FastConcurrentLRUCache ¶
type FastConcurrentLRUCache[K cmp.Ordered, V any] struct { // contains filtered or unexported fields }
func (*FastConcurrentLRUCache[K, V]) Capacity ¶
func (c *FastConcurrentLRUCache[K, V]) Capacity() int
func (*FastConcurrentLRUCache[K, V]) Get ¶
func (c *FastConcurrentLRUCache[K, V]) Get(key K) (V, bool)
func (*FastConcurrentLRUCache[K, V]) Put ¶
func (c *FastConcurrentLRUCache[K, V]) Put(key K, value V)
type FastSingleThreadLRUCache ¶
type FastSingleThreadLRUCache[K cmp.Ordered, V any] struct { // contains filtered or unexported fields }
func (*FastSingleThreadLRUCache[K, V]) Capacity ¶
func (c *FastSingleThreadLRUCache[K, V]) Capacity() int
func (*FastSingleThreadLRUCache[K, V]) Get ¶
func (c *FastSingleThreadLRUCache[K, V]) Get(key K) (V, bool)
func (*FastSingleThreadLRUCache[K, V]) Put ¶
func (c *FastSingleThreadLRUCache[K, V]) Put(key K, value V)
Click to show internal directories.
Click to hide internal directories.