Packages · @purista/redis-state-store

@purista/redis-state-store

Redis adapter for PURISTA state values.

Signature

@purista/redis-state-store.ts typescript
@purista/redis-state-store

Examples

example-1.ts typescript
const store = new RedisStateStore({
  config: { url: 'redis:___PH0___
})

await store.setState('tenant:acme:prod:cart:session-123', { step: 'shipping' })
const state = await store.getState('tenant:acme:prod:cart:session-123')

Classes

1 entry

RedisStateStore

Classes

Source
RedisStateStore.ts typescript
class RedisStateStore<M, F, S>

State store backed by Redis string keys.

Type Aliases

1 entry

RedisStoreConfig

Types

Source
RedisStoreConfig.ts typescript
type RedisStoreConfig = void

Redis state store backend configuration.

Variables

1 entry

puristaVersion

Variables

Source
puristaVersion.ts typescript
const puristaVersion: "3.0.1"

The PURISTA package version embedded in the published runtime build.