keys

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenStorageKey

func GenStorageKey(cacheKey CacheKey) string

Types

type CacheKey added in v1.0.0

type CacheKey string

CacheKey is the canonical single-key identity shared with the gen store.

func (CacheKey) String added in v1.0.0

func (k CacheKey) String() string

type Keyspace added in v1.0.0

type Keyspace struct {
	// contains filtered or unexported fields
}

Keyspace owns the v1 keyspace for one logical namespace.

func NewKeyspace added in v1.0.0

func NewKeyspace(namespace string) Keyspace

NewKeyspace precomputes the stable prefixes for one logical namespace.

func (Keyspace) BulkValue added in v1.0.0

func (s Keyspace) BulkValue(keys []string) (ValueKey, error)

func (Keyspace) BulkValueSorted added in v1.0.0

func (s Keyspace) BulkValueSorted(sortedKeys []string) (ValueKey, error)

BulkValueSorted returns the provider value key for a bulk entry. sortedKeys must already be sorted in ascending order.

func (Keyspace) Single added in v1.0.0

func (s Keyspace) Single(userKey string) Single

func (Keyspace) SingleCacheKey added in v1.0.0

func (s Keyspace) SingleCacheKey(userKey string) CacheKey

func (Keyspace) SingleValueKey added in v1.0.0

func (s Keyspace) SingleValueKey(userKey string) ValueKey

type Single added in v1.0.0

type Single struct {
	Cache CacheKey
	Value ValueKey
}

Single holds the canonical key identity used by the GenStore and provider.

type ValueKey added in v1.0.0

type ValueKey string

ValueKey is the provider storage key for an encoded cache value.

func (ValueKey) String added in v1.0.0

func (k ValueKey) String() string

Jump to

Keyboard shortcuts

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