1.0.4 • Published 8 years ago

credis v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

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

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago