State Store
01README
Persistent state management with PostgreSQL and Redis datastore providers
02Models
@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 |
fn get(name: string)
get operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
fn set(name: string)
set operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
fn delete(id: string, force?: boolean)
delete operation
| Argument | Type | Description |
|---|---|---|
| id | string | Resource identifier |
| force? | boolean | Skip confirmation and delete immediately |
fn list(name: string)
list operation
| Argument | Type | Description |
|---|---|---|
| name | string | Resource name |
03Datastores
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) |
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