Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schibsted-tech-polska/good-guy-cache-redis
Redis cache implementation for Good Guy HTTP
https://github.com/schibsted-tech-polska/good-guy-cache-redis
Last synced: 3 days ago
JSON representation
Redis cache implementation for Good Guy HTTP
- Host: GitHub
- URL: https://github.com/schibsted-tech-polska/good-guy-cache-redis
- Owner: Schibsted-Tech-Polska
- Created: 2015-05-22T10:49:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T13:49:29.000Z (over 7 years ago)
- Last Synced: 2024-10-10T18:22:09.331Z (about 1 month ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 3
- Watchers: 15
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/Schibsted-Tech-Polska/good-guy-cache-redis.svg?branch=master)](https://travis-ci.org/Schibsted-Tech-Polska/good-guy-cache-redis)
[![Coverage Status](https://coveralls.io/repos/Schibsted-Tech-Polska/good-guy-cache-redis/badge.svg)](https://coveralls.io/r/Schibsted-Tech-Polska/good-guy-cache-redis)Redis cache implementation for [Good Guy HTTP](https://github.com/Schibsted-Tech-Polska/good-guy-http).
# Usage
```
var RedisCache = require('good-guy-cache-redis');var cache = new RedisCache({
host: 'redis.host', port: 1234, options: { ...native RedisClient options...},auth: ... // if set, will be sent with a Redis AUTH command right after connecting
ttl: 60 * 30, // time-to-live for cached values, in seconds
// (set to Infinity if they should never expire)
// (default is 24h)
```