Compatible with Blockbase Framework
0.0.2
Memcached driver is really easy to use, first install it as any Blockbase driver.
$ npm i --save blockbase-memcached
Then add to your config the host
memcached :
host : localhost:11211
Feel free to also use the {env}.yml config file to store other memcached parameters such as a prefix for your keys in cache
memcached :
prefix : mysuperapp-
# etc ...
You'll inherit the entire [https://www.npmjs.com/package/memcached](memcached library)
method(){
app.drivers.memcached.get('somekey', (data) => {
// do whatever with data
})
//...
}
(Licence MIT) Coded by Blacksmith
Free Software, Hell Yeah!