yahoo/memcached-binary

Name: memcached-binary

Owner: Yahoo Inc.

Description: Binary Memcached client for Node.js

Created: 2016-02-05 14:13:16.0

Updated: 2018-05-04 22:12:00.0

Pushed: 2016-12-15 20:58:49.0

Homepage:

Size: 66

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

memcached-binary

Binary Memcached client for Node.js

Compared to other Node.js memcache clients, this uses the Memcache binary API exclusively, which means you are able to store and retrieve any data, including those which are raw binary or contain newlines, which cause problems with other implementations.

Usage:

MemcachedBinary = require('memcached-binary');

server = 'localhost:11211'; // '/somesocketpath' or 'somehost:someport'
params = { // Various params and options
e_buffers: false, // If true, always return Buffers instead of strings; defaults to false

memcached_binary = new MemcachedBinary(server, params);

ached_binary.set('key', 'value');
ached_binary.get('key', null, function(err, res) {
nsole.log(err || res); // Will log 'value'

Auto-generated API docs

Code licensed under the New BSD license. See LICENSE file for terms.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.