Socket
Book a DemoInstallSign in
Socket

memcached-promise

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memcached-promise

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

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
952
-3.45%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

InnoDB memcached API

FAQs

Package last updated on 30 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.