# @rappopo/dab-redis

> A Redis data access layer that'll pissed you off!

Latest version **0.0.5** (published 2017-12-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rappopo/dab-redis
pnpm add @rappopo/dab-redis
yarn add @rappopo/dab-redis
bun add @rappopo/dab-redis
```

## 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.5 |
| Published | 2017-12-27 |
| First published | 2017-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ardhi Lukianto |
| Maintainers | rappopo |
| Keywords | dab, dab-redis, redis, data, access, dal |

## Links

- npm: https://www.npmjs.com/package/@rappopo/dab-redis
- Repository: https://github.com/rappopo/dab-redis
- Homepage: https://github.com/rappopo/dab-redis#readme
- Issues: https://github.com/rappopo/dab-redis/issues
- npm.io page: https://npm.io/package/@rappopo/dab-redis

## Dependencies (3)

- [async](https://npm.io/package/async.md) ^2.6.0
- [redis](https://npm.io/package/redis.md) ^2.8.0
- [@rappopo/dab](https://npm.io/package/@rappopo/dab.md) 0.0.11

## 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.0.5 (latest) — 2017-12-27
- 0.0.4 — 2017-12-23
- 0.0.3 — 2017-12-10
- 0.0.2 — 2017-12-08
- 0.0.1 — 2017-12-05

## README

# @rappopo/dab-redis

A [Rappopo DAB](https://github.com/rappopo/dab) implementation for [Redis](https://redis.io). 

## Installation

Simply invoke this command in your project folder:

```
$ npm install --save @rappopo/dab-redis
```

And within your script:

```javascript
const DabRedis = require('@rappopo/dab-redis')
const dab = new DabRedis({
  url: 'redis://myhost:6379',
  ns: 'docs'
})
...
dab.findOne('my-doc').then(function(doc) { ... })
```

## Options

`url`: your Redis url endpoint. If it not provided, it defauts to: *redis://localhost:6379*

`ns`: your namespace. You'll most likely want to give a custom name, otherwise it defaults to *doc*

## Features

* [ ] [find](https://docs.rappopo.com/dab/method/find/)
* [x] [findOne](https://docs.rappopo.com/dab/method/find-one/)
* [x] [create](https://docs.rappopo.com/dab/method/create/)
* [x] [update](https://docs.rappopo.com/dab/method/update/)
* [x] [remove](https://docs.rappopo.com/dab/method/remove/)
* [x] [bulkCreate](https://docs.rappopo.com/dab/method/bulk-create/)
* [x] [bulkUpdate](https://docs.rappopo.com/dab/method/bulk-update/)
* [x] [bulkRemove](https://docs.rappopo.com/dab/method/bulk-remove/)
* [ ] [copyFrom](https://docs.rappopo.com/dab/method/copy-from/)
* [ ] [copyTo](https://docs.rappopo.com/dab/method/copy-to/)

## Misc

* [ChangeLog](CHANGELOG.md)
* Donation: Bitcoin **16HVCkdaNMvw3YdBYGHbtt3K5bmpRmH74Y**

## License

(The MIT License)

Copyright © 2017 Ardhi Lukianto <ardhi@lukianto.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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