Documentation
¶
Overview ¶
Package luxcache provides backward compatibility types for cache that were present in older Lux versions
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LRU ¶
type LRU[K comparable, V any] struct { Size int // contains filtered or unexported fields }
LRU provides a backward compatibility type for cache.LRU In newer Lux versions, use cache/lru.Cache instead
func NewLRU ¶
func NewLRU[K comparable, V any](size int) *LRU[K, V]
NewLRU creates a new LRU cache with initialization
func (*LRU[K, V]) PortionFilled ¶
PortionFilled returns the fraction of cache filled
Click to show internal directories.
Click to hide internal directories.