1.11.0 • Published 1 year ago
@purista/nats-config-store v1.11.0
@purista/nats-config-store
A config store for using NATS (with JetStream) as storage.
JetStream must be enabled at the NATS broker.
const config = {
port: 8222
}
const store = new NatsConfigStore( 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
1 year ago
1.10.8
1 year ago
1.10.7
1 year ago
1.10.5
1 year ago
1.10.4
1 year ago
1.10.6
1 year ago
1.10.3
1 year ago
1.10.2
1 year ago
1.10.1
1 year ago
1.10.0
1 year ago
1.9.1
1 year ago
1.7.5
2 years ago
1.8.3
2 years ago
1.7.4
2 years ago
1.7.3
2 years ago
1.9.0
2 years ago
1.8.1
2 years ago
1.8.0
2 years ago
1.7.2
2 years ago
1.7.1
2 years ago
1.7.0
2 years ago