0.0.11 • Published 4 years ago

@postnord/pretty-redis v0.0.11

Weekly downloads
-
License
Proprietary
Repository
-
Last release
4 years ago

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')

API

getRecord({ key: string })

storeRecord({ key: string, value: string, options?: { expiresInSeconds?: number })

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago