co-memcached

1.0.1 • Public • Published

#co-memcached

Simple wrapper to the memcached library for co-like interface(eg: koa,co)

To install run:

npm install co-memcached

Use in co:

var co = require('co'),
    Memcached = require('co-memcached'),
    memcached = new Memcached('127.0.0.1:11211')

co(function*(){
    yield memcached.set('foo','bar',1000)
    console.log(yield memcached.get('foo'))
})

All methods listed in memcached docs

Package Sidebar

Install

npm i co-memcached

Weekly Downloads

1

Version

1.0.1

License

The MIT License (MIT)

Last publish

Collaborators

  • otarim