Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCacheOptions ¶
func NewCacheOptions() *cacheOptions
Types ¶
type Cache ¶
type Cache[Key comparable, Value any] interface { Set(Key, Value) Get(Key) (value Value, ok bool) Size() int DeleteExpiredItems() FlushKOldest(int) Flush() Stop() }
func NewCache ¶
func NewCache[Key comparable, Value any](options *cacheOptions) Cache[Key, Value]
options must be define - use the NewCacheOptions to get the default values
Click to show internal directories.
Click to hide internal directories.