Socket
Book a DemoInstallSign in
Socket

memcache-server-stream

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memcache-server-stream

duplex stream implementation of memcache server protocol. pipe any net connection to add mc support to your node server

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Build Status

#memcache-server-stream

memcache server protocol implemented on top of a duplex stream. add memcache protocol support to any node net.Server

##examples

as a stream just pipe!


var mc = require('memcache-server-stream');

con.pipe(mc()).pipe(con);

for a simple server you can just use



var mc = require('memcache-server-stream');

var server = mc.server()

server.listen(11200,function(){
  console.log('ready for connections from memcache clients');
})


##api

mc = exports function(cache object [optional])

  • duplex stream ready for reading an writing memcache protocol

mc.server(cache object [optional])

  • handy dandy pre-made net server setup to handle all connections

mc.mc(cache object [optional])

  • factory for underlying protocol implementation

mc.mc.Mc

  • contructor for underlying protocol implementation

"cache object"

  • defaults to issacs lru-cache module
  • must support sync get/set as functions at this time.

Keywords

memcache

FAQs

Package last updated on 16 May 2016

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