@postnord/pretty-redis
v0.0.11
Published
An abstraction layer on top of Redis to improve the interface and Typescript compatibility
Downloads
16
Maintainers
Keywords
Readme
An abstraction layer on top of the Redis native driver. Exposes a set of clean methods to deal with caching.
Installation
Run npm i pretty-dynamo @aws/dynamodb-data-mapper-annotations
and you're good to go.
import { RedisMemoryMethods } from 'pretty-redis'
const myService = new RedisMemoryMethods('localhost')
await myService.storeRecord({ key: 'a', value: 'b' })
expect(await myService.getRecord({ key: 'a' })).toBe('b')