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
Size: 66
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
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'
Code licensed under the New BSD license. See LICENSE file for terms.