Memcached adapter for Akyuu.js.
npm install akyuu-adapter-memcached-binarymemcached binary protocol adapter for akyuu
npm install akyuu-adapter-memcached-binary
`$3
Make sure you have a connections section in your configuration file(s).
And its adapter should be memcached-binary.option | required | remark
---- | ---- | ----
adapter | ✓ | must be
memcached-binary
serverUri | ✓ | e.g. username:password@host:port$3
#### Config File
`
// ${project}/config/default/connections.js'use strict'
module.exports = {
myMemcached: {
adapter: 'memcached-binary',
serverUri: 'tom:xafqfdagqqv@127.0.0.1:11211'
}
}
`#### Model File
`
// ${project}/models/${model}.js'use strict'
const akyuu = require('akyuu');
const memcachedClient = akyuu.config.connection.get('myMemcached');
module.exports = redisClient;
``