Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyValueConfig ¶
type KeyValueProvider ¶
type KeyValueProvider[K ~string | ~uint64, V any] interface { Setup() error Shutdown() error Store(key K, value V) error Get(key K) (V, error) Remove(key K) error ForEach(fn func(key K, value V) bool) error GetMultiple(keys []K) ([]V, error) StoreReference(reference K, key K) error RemoveReference(reference K) error GetByReference(reference K) (V, error) }
func GetKeyValueProviderFromConfig ¶
func GetKeyValueProviderFromConfig[K ~string | ~uint64, V any](keyValueConfig KeyValueConfig) (KeyValueProvider[K, V], error)
Click to show internal directories.
Click to hide internal directories.