3.1.0 • Published 6 years ago

@dnode/redis v3.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

dependencies | 1 | 25

Usage

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

(async () => {
  await redis.set('key', 'value', 1 * 60 * 60);
  const value = await redis.get('key');
})();

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

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

(async () => {
  await redis.set('key', 'value', duration('1h'));
  const value = await redis.get('key');
})();
3.1.0

6 years ago

3.0.0

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

1.1.0

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago