@swampadmin/state-store
v2026.01.20.0
Persistent state management with PostgreSQL and Redis datastore providers
Repository
https://github.com/swamp-club/state-store
Labels
statepostgresredisdatastore
Contents
Install
$ swamp extension pull @swampadmin/state-store@swampadmin/state-store/state-managerv1.0.0state-manager.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| region | string | Target region |
| dry_run? | boolean | Preview changes without applying |
getget operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
setset operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
deletedelete operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
| force? | boolean | Skip confirmation and delete immediately |
listlist operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
postgres-stateconfigurable
datastore-providerpostgres.ts
postgres-state datastore provider
Config Fields
| Field | Type | Description |
|---|---|---|
| connection_string | string | PostgreSQL connection URL |
| table_prefix? | string | Table name prefix for multi-tenant isolation |
| pool_size? | number | Connection pool size (default: 5) |
redis-stateconfigurable
datastore-providerredis.ts
redis-state datastore provider
Config Fields
| Field | Type | Description |
|---|---|---|
| url | string | Redis connection URL (e.g. redis://localhost:6379) |
| key_prefix? | string | Key prefix for namespace isolation |
| ttl? | number | Default TTL in seconds (0 = no expiry) |