Skip to main content

State Store

@swampadmin/state-storev2026.01.20.0· 1mo agoMODELS·DATASTORES
01README

Persistent state management with PostgreSQL and Redis datastore providers

02Models1
@swampadmin/state-store/state-managerv1.0.0state-manager.ts

Global Arguments

ArgumentTypeDescription
regionstringTarget region
dry_run?booleanPreview changes without applying
fn get(name: string)
get operation
ArgumentTypeDescription
namestringResource name
fn set(name: string)
set operation
ArgumentTypeDescription
namestringResource name
fn delete(id: string, force?: boolean)
delete operation
ArgumentTypeDescription
idstringResource identifier
force?booleanSkip confirmation and delete immediately
fn list(name: string)
list operation
ArgumentTypeDescription
namestringResource name
03Datastores2
postgres-stateconfigurable
datastore-providerpostgres.ts

postgres-state datastore provider

Config Fields

FieldTypeDescription
connection_stringstringPostgreSQL connection URL
table_prefix?stringTable name prefix for multi-tenant isolation
pool_size?numberConnection pool size (default: 5)
redis-stateconfigurable
datastore-providerredis.ts

redis-state datastore provider

Config Fields

FieldTypeDescription
urlstringRedis connection URL (e.g. redis://localhost:6379)
key_prefix?stringKey prefix for namespace isolation
ttl?numberDefault TTL in seconds (0 = no expiry)
04Stats
Downloads
0
Archive size
110.0 KB

Not yet scored.

A score will be generated the next time this extension is published. The owner can also trigger scoring manually.

05Platforms
06Labels