1.1.6 • Published 3 years ago

think-cache-memcache v1.1.6

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

think-cache-memcache

Build Status Coverage Status npm

Use memcache to cache data

Install

npm install think-cache-memcache

How to Usage

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

const memcacheCache = require('think-cache-memcache');
exports.cache = {
  type: 'memcache',
  common: {
    timeout: 24 * 3600 * 1000 // millisecond, default timeout for function set
  },
  memcache: {
    handle: memcacheCache,
    hosts: ['127.0.0.1:11211'],
    maxValueSize: 1048576,
    netTimeout: 5000,
    reconnect: true
  }
}

memcache config see at http://memcache-plus.com/

1.1.6

3 years ago

1.1.5

4 years ago

1.1.4

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago