2.1.5 • Published 9 months ago
@purista/redis-state-store v2.1.5
@purista/redis-state-store
A state store for using redis as storage.
State values are stored as stringified JSON in the redis database.
By default `get
const config = {
url: 'redis://alice:foobared@awesome.redis.server:6380'
}
const store = new RedisStateStore( config )
await store.setState('stateKey',{ myState: 'value' })
let value = await store.getState('stateKey')
console.log(value) // outputs: { stateKey: { myState: 'value' } }
await store.removeState('stateKey')
value = await store.getState('stateKey')
console.log(value) // outputs: undefinedSee documentation of underlaying redis lib package for detailed configuration options - NODE-REDIS.
Visit purista.dev
Follow on Twitter @purista_js
Join the Discord Chat
2.1.2
10 months ago
2.0.3
12 months ago
2.1.1
10 months ago
2.1.4
10 months ago
2.0.5
11 months ago
2.1.3
10 months ago
2.0.4
11 months ago
2.1.5
9 months ago
2.0.6
11 months ago
2.1.0
11 months ago
2.0.1
12 months ago
2.0.0
12 months ago
1.11.0
2 years ago
1.10.8
2 years ago
1.10.7
2 years ago
1.10.5
2 years ago
1.10.4
2 years ago
1.10.6
2 years ago
1.10.3
2 years ago
1.10.2
2 years ago
1.10.1
2 years ago
1.10.0
2 years ago
1.9.1
2 years ago
1.9.0
2 years ago
1.8.1
2 years ago
1.8.0
2 years ago
1.7.5
3 years ago
1.8.3
2 years ago
1.7.4
3 years ago
1.7.2
3 years ago
1.7.1
3 years ago
1.7.0
3 years ago
1.6.0
3 years ago
1.5.0
3 years ago