Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheStorage ¶
type CacheStorage[T comparable] interface { Set(key string, value T) Get(key string) (T, bool) Delete(key string) BulkSet(data map[string]T) BulkGet(keys []string) map[string]T BulkDelete(keys []string) GetAll(mustIncludeKeys ...string) map[string]T DeleteAll() }
func NewCacheStorage ¶
func NewCacheStorage[T comparable](exiresIn time.Duration) CacheStorage[T]
Click to show internal directories.
Click to hide internal directories.