1.0.7 • Published 9 years ago

memcached-protocol v1.0.7

Weekly downloads
8
License
MIT
Repository
github
Last release
9 years ago

memcached-protocol

Fast memcached binary protocol implementation for Node.JS with binary packet reader / writer and corresponding streams2 stream interfaces.

install

npm install memcached-protocol

api

var mp = require('memcached-protocol');

var writer = mp.Writer();
var buffer = writer.write({
  key: 'KEY',
  opcode: "GET|SET|ADD|REPLACE|...",
  value: Buffer|String,
  extras: {
    expiry: Number,
    initial: Number,
    delay: Number,
    flags: Number
  },
  cas: String,
  opaque: Number
})

var reader = mp.Reader();
// returns array of structured memcached packets
var packets = reader.read(buffer)

// reset state
reader.reset();

author

Ekin Koc

license

MIT

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago