cache

package
v0.0.0-...-bebbdda Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL