@maxdome/redis

```javascript const redis = require('@maxdome/redis')(process.env.REDIS_URL);

Stats

StarsIssuesVersionUpdatedCreatedSize
@maxdome/redis
3.0.23 years ago4 years agoMinified + gzip package size for @maxdome/redis in KB

Readme

Usage

const redis = require('@maxdome/redis')(process.env.REDIS_URL);

await redis.setJSON('key', 'value', 1 * 60 * 60);
const value = await redis.getJSON('key');

If the expire is an object supporting asSeconds() (e.g. @maxdome/duration or moment.duration) it will be used.

const duration = require('@maxdome/duration');
const redis = require('@maxdome/redis')(process.env.REDIS_URL);

await redis.setJSON('key', 'value', duration('1h'));
const value = await redis.getJSON('key');

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.