# redis-protocol

> implement your server with the redis protocol

Latest version **0.1.10** (published 2013-01-08) · 0 weekly downloads

## Install

```sh
npm install redis-protocol
pnpm add redis-protocol
yarn add redis-protocol
bun add redis-protocol
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.10 |
| Published | 2013-01-08 |
| First published | 2012-01-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Mathieu Lecarme |
| Maintainers | athoune |
| Keywords | redis |

## Links

- npm: https://www.npmjs.com/package/redis-protocol
- Homepage: http://github.com/athoune/node-redis-protocol
- Issues: http://github.com/athoune/node-redis-protocol/issues
- npm.io page: https://npm.io/package/redis-protocol

## Dependencies (1)

- [redis](https://npm.io/package/redis.md) >=0.8

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

- 0.1.10 (latest) — 2013-01-08
- 0.1.9 — 2012-01-30
- 0.1.8 — 2012-01-30
- 0.1.7 — 2012-01-30
- 0.1.6 — 2012-01-30
- 0.1.5 — 2012-01-20
- 0.1.4 — 2012-01-20
- 0.1.3 — 2012-01-20
- 0.1.2 — 2012-01-20
- 0.1.1 — 2012-01-20
- 0.1.0 — 2012-01-20
- 0.0.1 — 2012-01-06

## README

Node Redis protocol
===================

Implement your own server using the redis protocol.

Build a fake redis or a redis slave.

Install
-------

  npm install

Test
----

  npm test

## Use cases ##

### Fake redis server ###

```javascript
var redisd = require('redis-protocol');
var server = redisd.createServer(function(command) {
      console.log('query', command);
      this.encode(['pim', 'pam']);// the answer
});
server.listen(6379, function() {
    console.log('fake redis started');
});
```
This code is available at project root level.

You can talk to it with any redis tools. Try *redis-cli*.

Continous integration
---------------------

[![Build Status](https://secure.travis-ci.org/athoune/node-redis-protocol.png)](http://travis-ci.org/athoune/node-redis-protocol)

Licence
-------

MIT

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