memcached-promise
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Memcached Promise

A fully featured Memcached client 'memcached' with Promise support. Powered by Bluebird.

Installation

$ npm install --save memcached
$ npm install --save memcached-promise

Same as request-promise, memcached is defined as a peer-dependency and thus has to be installed separately.

Example

const Memcached = require("memcached-promise");
 
const memcached = new Memcached(
    "localhost:11211",
    { 
        maxExpiration: 2592000, 
        namespace: "test", 
        debug: false 
    }
);
 
void async function main() {
    try {
        await memcached.set("hello", { foo: "bar"});
        console.log(await memcached.get("hello"));
    } catch (error) {
        console.error(error);
    }
}()

ToDo List

A clear declaration file for this module.

License

This software is released under the MIT license. See the license file for more details.

Package Sidebar

Install

npm i memcached-promise

Weekly Downloads

750

Version

1.0.1

License

MIT

Unpacked Size

7.6 kB

Total Files

6

Last publish

Collaborators

  • ken20206