1.0.2 • Published 5 years ago

@kava-labs/ilp-store-redis v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

ILP Store Redis

ILP store for the connector, using redis as a backend

Install

npm i @kava-labs/ilp-store-redis

Usage

const Store = require('@kava-labs/ilp-store-redis')
const redisStore = new Store({
  path: 'test.example', // used as prefix for keys and publish
  port: 6379 // extra arguments are passed to `ioredis` constructor
})

await redisStore.get(key)
await redisStore.put(key, value)
await redisStore.del(key)