1.0.4 • Published 5 years ago

@thealmondtree/redis v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 years ago

The Almond Tree Redis wrapper

Package that serves as a driver Redis connections.

It is built with Typescript and NodeJS redis package, but, thanks to bluebird, has the same methods as the original package but ended with Async and returning promises, i.e:

cache.getAsync('redisKey').then(res => { console.log(res) })

Installation

npm i @thealmondtree/redis

Exports

This package exports an factory function that when passed the config object returns an instantiated connection to redis object

Config Options

Property NameProperty TypeRequiredDefault
hoststringyes
portnumberyes
monitorbooleannofalse
shouldTrustErrorsbooleannofalse
Notes

The shouldTrustErrors is there to allow for the driver to expect errors in connection and not break the node process if something goes wrong, use with caution.

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.0

5 years ago