# magency

> Magency is another (after Nohm) object relational mapper (ORM) written for node.js and redis :) . It uses the Backbone API as model holder.

Latest version **0.1.0** (published 2014-12-26) · MIT license · 0 weekly downloads

## Install

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

## 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.0 |
| Published | 2014-12-26 |
| First published | 2014-12-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Michael Belyakov |
| Maintainers | yababay |
| Keywords | magency, Node js, Redis, model |

## Links

- npm: https://www.npmjs.com/package/magency
- Repository: https://github.com/mabel/magency
- Homepage: http://mabel.github.io/magency
- Issues: https://github.com/mabel/magency/issues
- npm.io page: https://npm.io/package/magency

## Dependencies (3)

- [redis](https://npm.io/package/redis.md) ^0.12.1
- [backbone](https://npm.io/package/backbone.md) ^1.1.2
- [underscore](https://npm.io/package/underscore.md) 1.7.x

## 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.0 (latest) — 2014-12-26
- 0.0.2 — 2014-12-19
- 0.0.1 — 2014-12-18
- 0.0.0 — 2014-12-17

## README

#  [![Build Status](https://secure.travis-ci.org/mabel/magency.png?branch=master)](http://travis-ci.org/mabel/magency)

> Magency is another (after Nohm) object relational mapper (ORM) written for node.js and redis :) .


## Install

```sh
$ npm install --save magency
```


## Usage

```js
var magency = require('magency');

var Agency = magency('Rainbow').createAgency('your-prefix');
var u1 = Agency.getInstance('User', 'user1', {firstName: 'John', secondName: 'Smith'})
u1.save()

u1 = Agency.getInstance('User', 'user1', {age: 50})
u2.load(function(obj){
    console.log(obj) // {firstName: 'Jack', secondName: 'Quick', age: 50}
})

u1.p('middleName', 'the Nimble')

u1.save()


```


## License

MIT © [Michael Belyakov](http://yababay.ru)

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