@keyvhq/redis v2.1.8
@keyvhq/redis
Redis storage adapter for Keyv.
TTL functionality is handled directly by Redis so no timestamps are stored and expired keys are cleaned up internally.
Install
npm install --save @keyvhq/core @keyvhq/redisUsage
const KeyvRedis = require('@keyvhq/redis')
const Keyv = require('@keyvhq/core')
const keyv = new Keyv({ store: new KeyvRedis('redis://user:pass@localhost:6379') })Any valid Redis options will be passed directly through:
const KeyvRedis = require('@keyvhq/redis')
const Keyv = require('@keyvhq/core')
const keyv = new Keyv({
store: new KeyvRedis('redis://user:pass@localhost:6379', {
disable_resubscribing: true
})
})Or you can reuse a previously declared Redis instance:
const KeyvRedis = require('@keyvhq/redis')
const Keyv = require('@keyvhq/core')
const { Redis } = KeyvRedis
const redis = new Redis('redis://user:pass@localhost:6379')
const keyv = new Keyv({ store: new KeyvRedis(redis) })License
@keyvhq/redis © Luke Childs, released under the MIT License. Maintained by Microlink with help from contributors.
microlink.io · GitHub microlinkhq · X @microlinkhq
9 months ago
9 months ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago