blockbase-memcached

0.0.3 • Public • Published

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!

Readme

Keywords

none

Package Sidebar

Install

npm i blockbase-memcached

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

3.04 kB

Total Files

4

Last publish

Collaborators

  • alxpereira
  • shide