npm.io
1.0.4 • Published 8 years ago

credis

Licence
ISC
Version
1.0.4
Deps
2
Vulns
0
Weekly
0

CRedis

Customize Redis.

Installation

npm install credis

Usage

const redis = require('credis');

Different from NODE_ENV

You have to have a folder called config.And the config subdirectory is named with the environment variable.

Set

redis.set('key', 'value');

SetEx

// ten minutes
redis.setEx('key', 'value', 10 * 60);

Get

let value = await redis.get('key');

Keywords