keys

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenStorageKey

func GenStorageKey(cacheKey string) string

GenStorageKey maps a canonical single-key identity to its generation storage key.

Types

type CacheKey added in v1.0.0

type CacheKey string

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

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

type ValueKey added in v1.0.0

type ValueKey string

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