# noredis

> simple shared storage for nodejs cluster

Latest version **0.0.10** (published 2013-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install noredis
pnpm add noredis
yarn add noredis
bun add noredis
```

## 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.0.10 |
| Published | 2013-04-18 |
| First published | 2013-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dongsu Jang |
| Maintainers | iolo |

## Links

- npm: https://www.npmjs.com/package/noredis
- Repository: https://git@github.com/iolo/node-noredis
- npm.io page: https://npm.io/package/noredis

## Recent versions

- 0.0.10 (latest) — 2013-04-18
- 0.0.9 — 2013-02-14
- 0.0.8 — 2013-02-14
- 0.0.7 — 2013-01-30
- 0.0.6 — 2013-01-25
- 0.0.5 — 2013-01-24
- 0.0.4 — 2013-01-24
- 0.0.3 — 2013-01-24
- 0.0.2 — 2013-01-24
- 0.0.1 — 2013-01-24

## README

noredis
=======

*This is extremely experimental stuff*

This is a simple "shared storage" for nodejs cluster without redis-like daemon.

Features
--------

* set/get/del/exists/incr/decr/incrby/decrby/keys
* hset/hget/hdel/hexists/hincrby/hlen/hkeys/hvals/hgetall
* echo/flushall/flushdb
* TODO: ....
* see also [redis command reference](http://redis.io/commands) for supported commands

Install
-------

```
npm install noredis
```

or

```
npm install git@github.com:iolo/node-noredis.git
```

How to Use(with cluster)
------------------------

1. do ```require('noredis')``` before fork the first worker.
2. use noredis in workers.
3. that's all folks.

```javascript
var cluster = require('cluster'),
    noredis = require('noredis'); // NOTE: before the first fork!

if (cluster.isMaster()) {
  ...
  cluster.fork();
  ...
} else {
  ...
  noredis.set('foo', 123);
  noredis.get('foo', function(err, reply) {
    console.log('foo is ' + reply);
  });
}
```

* see also [examples/cluster.js](http://github.com/iolo/node-noredis/blob/master/examples/cluster.js)

How to Use(without cluster)
---------------------------

1. simply ```require('noredis')``` and use it.
2. that's all ;)

```javascript
var noredis = require('noredis');

...
noredis.set('foo', 123);
noredis.get('foo', function(err, reply) {
console.log('foo is ' + reply);
});
```

* see also [examples/nocluster.js](http://github.com/iolo/node-noredis/blob/master/examples/nocluster.js)

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