2.1.5 • Published 11 months ago

@keyvhq/redis v2.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@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/redis

Usage

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

2.1.5

11 months ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

2 years ago

2.0.0-beta.0

2 years ago

1.6.28

2 years ago

2.0.0

2 years ago

1.6.26

2 years ago

1.6.20

3 years ago

1.6.21

3 years ago

1.6.17

3 years ago

1.6.19

3 years ago

1.6.18

3 years ago

1.6.13

3 years ago

1.6.10

3 years ago

1.6.6

3 years ago

1.6.5

3 years ago

1.6.2

4 years ago

1.6.1

4 years ago

1.6.0

4 years ago

1.5.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.7

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.5-alpha.0

4 years ago