Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TCache ¶
type TCache[K comparable, V interface{}] interface { Has(key K) bool Get(key K) (V, bool) Set(key K, value V) Del(key K) Keys() []K Flush() }
type TCacheReplace ¶ added in v0.4.7
type TCacheReplace[K comparable, V interface{}] interface { TCache[K, V] Replace(data map[K]V) }
func NewWithReplace ¶ added in v0.4.7
func NewWithReplace[K comparable, V any]() TCacheReplace[K, V]
type TCacheTTL ¶ added in v0.4.7
type TCacheTTL[K comparable, V interface{}] interface { TCache[K, V] SetWithTTL(key K, value V, ttl time.Time) }
func NewWithTTL ¶
Click to show internal directories.
Click to hide internal directories.