# memcache-server-stream

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

Latest version **1.0.0** (published 2016-05-16) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install memcache-server-stream
pnpm add memcache-server-stream
yarn add memcache-server-stream
bun add memcache-server-stream
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-16 |
| First published | 2012-10-16 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Ryan Day |
| Maintainers | soldair |
| Keywords | memcache, memcached, server, protocol |

## Links

- npm: https://www.npmjs.com/package/memcache-server-stream
- Repository: https://github.com/soldair/node-memcache-server-stream
- Homepage: https://github.com/soldair/node-memcache-server-stream#readme
- Issues: https://github.com/soldair/node-memcache-server-stream/issues
- npm.io page: https://npm.io/package/memcache-server-stream

## Dependencies (2)

- [duplex](https://npm.io/package/duplex.md) ^1.0.0
- [lru-cache](https://npm.io/package/lru-cache.md) ^4.0.1

## Alternatives

- [memory-cache](https://npm.io/package/memory-cache.md) — 795.0K weekly downloads
- [@httptoolkit/proxy-agent](https://npm.io/package/@httptoolkit/proxy-agent.md) — 11.2K weekly downloads
- [express-cache-controller](https://npm.io/package/express-cache-controller.md) — 5.3K weekly downloads
- [http-cache-middleware](https://npm.io/package/http-cache-middleware.md) — 4.5K weekly downloads
- [cache2](https://npm.io/package/cache2.md) — 1.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-05-16
- 0.0.1 — 2013-11-16
- 0.0.0 — 2012-10-16

## README

[![Build Status](https://secure.travis-ci.org/soldair/node-memcache-server-stream.png)](http://travis-ci.org/soldair/node-memcache-server-stream)

#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!

```js

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

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

```

for a simple server you can just use


```js


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.

---
_Source: https://npm.io/package/memcache-server-stream · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
