1.11.0 • Published 2 months ago

@purista/redis-config-store v1.11.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

@purista/redis-config-store

A config store for using redis as storage.
Config 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 RedisConfigStore(config)

 await store.setConfig('configKey',{ myConfig: 'value' })

 let value = await store.getConfig('configKey')
 console.log(value) // outputs: { configKey: { myConfig: 'value' }}

 await store.removeConfig('configKey')

 value = await store.getConfig('configKey')
 console.log(value) // outputs: undefined

See documentation of underlaying redis lib package for detailed configuration options - NODE-REDIS.

Visit purista.dev

Follow on Twitter @purista_js
Join the Discord Chat

1.11.0

2 months ago

1.10.8

3 months ago

1.10.7

3 months ago

1.10.5

3 months ago

1.10.4

3 months ago

1.10.6

3 months ago

1.10.3

3 months ago

1.10.2

3 months ago

1.10.1

3 months ago

1.10.0

3 months ago

1.9.1

3 months ago

1.7.5

10 months ago

1.8.3

7 months ago

1.7.4

10 months ago

1.9.0

6 months ago

1.8.1

8 months ago

1.8.0

8 months ago

1.7.2

11 months ago

1.7.1

11 months ago

1.7.0

11 months ago