think-cache-redis
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.6 • Public • Published

    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/

    Install

    npm i think-cache-redis

    DownloadsWeekly Downloads

    40

    Version

    1.2.6

    License

    ISC

    Unpacked Size

    6.83 kB

    Total Files

    8

    Last publish

    Collaborators

    • lizheming
    • welefen
    • sijiecai
    • lushijie
    • berwin
    • bezos
    • toxicjohann
    • huangxiaolu