store

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package store is the long-term key-value store for application data that outlives executions, shared by clients and worker jobs. Values live in the <ns>-store bucket under <namespace>.<key>; namespaces and keys are tokens.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete added in v1.0.0

func Delete(ctx context.Context, in *infra.Infra, ns, key string) error

Delete removes ns/key.

func Get added in v1.0.0

func Get(ctx context.Context, in *infra.Infra, ns, key string) (json.RawMessage, error)

Get returns the value under ns/key, apierr.ErrNotFound when there is none.

func Keys added in v1.0.0

func Keys(ctx context.Context, in *infra.Infra, ns string) ([]string, error)

Keys lists the keys of a namespace, sorted.

func Put added in v1.0.0

func Put(ctx context.Context, in *infra.Infra, ns, key string, value any) error

Put stores value (any JSON-encodable value) under ns/key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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