CRedis
Customize Redis.
Installation
npm install credis
Usage
const redis = ;
Different from NODE_ENV
You have to have a folder called config.And the config subdirectory is named with the environment variable.
Set
redis;
SetEx
// ten minutesredis;
Get
let value = await redis;