1.0.0 • Published 3 years ago

@fizz.js/node-cache v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@fizz.js/node-cache

This is a cache library for express.

install

add dependencies into package.json and run yarn install

configure

please put cache config into config/${env}.json

{
  "redis": {
    "enabled": true,
    "host": "127.0.0.1",
    "port": 6379,
    "options": {
      "no_ready_check": true
    }
  },
  "cache": {
    "debug": false,
    "defaultDuration": "1 hour",
    "enabled": true
  }
}

test

yarn test

coverage

yarn cover

build

yarn build

docs

yarn docs