blockbase-memcached
v0.0.3
Published
blockbase driver for Memcached
Downloads
3
Readme
Driver Memcached for Blockbase
Compatible with Blockbase Framework
Version
0.0.2
How to install ?
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 ...
Usage
You'll inherit the entire [https://www.npmjs.com/package/memcached](memcached library)
method(){
app.drivers.memcached.get('somekey', (data) => {
// do whatever with data
})
//...
}
License
(Licence MIT) Coded by Blacksmith
Free Software, Hell Yeah!