KV

class

gworker_client.resources.KV

Distributed key-value store reference. Backed by a persistent, tenant-scoped store accessible from any task or stage. Values are bytes; keys are strings. Good for caching, counters, and cross-task coordination.

Class

python
1class KV

Methods

from_name

python
1from_name(name: str, create: bool = True) -> KV

Reference a KV store by name. If create=True (default), the store is created automatically on first deploy if it does not exist. Set create=False to raise NotFoundError instead.

← Back to docs