credis

1.0.4 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.4
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.4
    1
  • 1.0.3
    1
  • 1.0.2
    1
  • 1.0.1
    1

Package Sidebar

Install

npm i credis

Weekly Downloads

4

Version

1.0.4

License

ISC

Last publish

Collaborators

  • frank5380