# cache_star

> Local memory Cache and Redis binder

Latest version **1.0.18** (published 2020-05-11) · ISC license · 0 weekly downloads

## Install

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

## 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.18 |
| Published | 2020-05-11 |
| First published | 2017-05-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 55.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Optimove |
| Maintainers | shai.shsh |

## Links

- npm: https://www.npmjs.com/package/cache_star
- npm.io page: https://npm.io/package/cache_star

## Dependencies (2)

- [redis](https://npm.io/package/redis.md) ^2.7.1
- [bluebird](https://npm.io/package/bluebird.md) ^3.5.0

## Recent versions

- 1.0.18 (latest) — 2020-05-11
- 1.0.17 — 2018-02-12
- 1.0.16 — 2018-01-16
- 1.0.15 — 2018-01-16
- 1.0.14 — 2017-12-25
- 1.0.13 — 2017-11-13
- 1.0.12 — 2017-11-12
- 1.0.11 — 2017-10-29
- 1.0.10 — 2017-09-25
- 1.0.9 — 2017-07-13
- 1.0.8 — 2017-06-03
- 1.0.7 — 2017-06-03
- 1.0.6 — 2017-05-29
- 1.0.5 — 2017-05-28
- 1.0.4 — 2017-05-24
- … 4 more at https://npm.io/package/cache_star/versions

## README

# Cache Star

Cache Star is a Redis - In memory simple binder, using under the hood Redis pub-sub methods and lazy loads to in memory object, return promises.

### Installation

Cache Star requires [Node.js](https://nodejs.org/) v6+ to run.
Install the dependencies and devDependencies and start the server.

```sh
$ npm install cache_star --save
```

### Usage Examples
In your node app
```sh
 let cacheStar = require(‘cache_star’);
 let redisConObj = { port: 'myRedisPort', host: 'myRedisHost', password: 'myRedisPass' };
 let cachStarManger = new cacheStar(redisConObj);

cachStarManger.get(‘myRedisHash’, ‘myRedisHashKey’).then((hashVal) => {
    // do something	
});

cachStarManger.set(‘myRedisHash’, ‘myRedisHashKey’, objToSave).then((ans) => {
	// do something
});

cachStarManger.del(‘myRedisHash’, ‘myRedisHashKey’).then((hashVal) => {
	// do something
});
```
# Supports:
currently support 4 redis methods
 - get
 - getAll
 - set
 - del

### Tech

Cache Star uses a number of open source projects to work properly:

* [Node_Redis] - redis client for node.
* [Bluebird] - Bluebird is a full featured promise library with unmatched performance.

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