Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hemerajs/hemera-redis-cache

Use Redis with Hemera
https://github.com/hemerajs/hemera-redis-cache

cache hemera redis

Last synced: 3 days ago
JSON representation

Use Redis with Hemera

Awesome Lists containing this project

README

        

# Hemera-redis-cache package
[![Build Status](https://travis-ci.org/hemerajs/hemera-redis-cache.svg?branch=master)](https://travis-ci.org/hemerajs/hemera-redis-cache)
[![npm](https://img.shields.io/npm/v/hemera-redis-cache.svg?maxAge=3600)](https://www.npmjs.com/package/hemera-redis-cache)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge)

This is a plugin to use [Redis](https://redis.io/) as caching layer with Hemera. Underlying driver [Node Redis](https://github.com/NodeRedis/node_redis)

#### Example

```js
const hemera = new Hemera(nats)
hemera.use(require('hemera-joi'))
hemera.use(require('hemera-redis-cache'))
```

## Run Redis
```bash
$ docker-compose up
```

## Dependencies
- hemera-joi