1.0.4 • Published 7 years ago

credis v1.0.4

Weekly downloads
2
License
ISC
Repository
github
Last release
7 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

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago