NODEJS(20)memcached NODEJS

NODEJS(20)memcached NODEJS

Pay attention to the Config and Version
memcache: {
hosts: ['127.0.0.1:11211'],
options: {
poolSize: 10,
timeout: 1000,
reconnect: 1000,
retry: 1000,
retries: 3
}
}

var Memcached = require('memcached');
this.memcachedClient = new Memcached(config.data.memcache.hosts,config.data.memcache.options);

"memcached": "2.1.0",

References:


你可能感兴趣的:(memcached)