Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { // EvictShortLiving - notify the cache that all short living elements cached before the events should be considered as evicted. EvictShortLiving() // DisableShortLiving disables the caching of short-living elements. DisableShortLiving() // IsEvicted - based on the eviction event and the time of caching, calculates whether the key was evicted IsEvicted(key []byte, originalTTL time.Duration) bool Set(key []byte, value any, ttl time.Duration) bool Get(key []byte) (value any, ok bool) Remove(key []byte) }
func NewNoOpCache ¶ added in v1.0.0
func NewNoOpCache() Cache
Click to show internal directories.
Click to hide internal directories.