1.2.6 • Published 3 years ago

think-cache-redis v1.2.6

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

think-cache-redis

Build Status Coverage Status npm

Use redis to cache data

Install

npm install think-cache-redis

How to Usage

edit config file src/config/adapter.js, add options:

const redisCache = require('think-cache-redis');
exports.cache = {
  type: 'redis',
  common: {
    timeout: 24 * 3600 * 1000 // millisecond
  },
  redis: {
    handle: redisCache,
    port: 6379,
    host: '127.0.0.1',
    password: ''
  }
}

redis config see at https://github.com/luin/ioredis/

1.2.6

3 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

6 years ago

1.1.2

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago