# think-cache-redis-cluster

> Redis cache Adapter for ThinkJS'S Cache

Latest version **1.0.8** (published 2023-07-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install think-cache-redis-cluster
pnpm add think-cache-redis-cluster
yarn add think-cache-redis-cluster
bun add think-cache-redis-cluster
```

## 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.8 |
| Published | 2023-07-14 |
| First published | 2023-03-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | feeloc |
| Maintainers | feeloc |

## Links

- npm: https://www.npmjs.com/package/think-cache-redis-cluster
- npm.io page: https://npm.io/package/think-cache-redis-cluster

## Dependencies (2)

- [think-helper](https://npm.io/package/think-helper.md) ^1.0.22
- [think-redis-cluster](https://npm.io/package/think-redis-cluster.md) ^1.0.8

## Recent versions

- 1.0.8 (latest) — 2023-07-14
- 1.0.7 — 2023-07-14
- 1.0.6 — 2023-07-07
- 1.0.5 — 2023-03-14
- 1.0.4 — 2023-03-14

## README

# think-cache-redis
[![Build Status](https://travis-ci.org/thinkjs/think-cache-redis.svg?branch=master)](https://travis-ci.org/thinkjs/think-cache-redis)
[![Coverage Status](https://coveralls.io/repos/github/thinkjs/think-cache-redis/badge.svg?branch=master)](https://coveralls.io/github/thinkjs/think-cache-redis?branch=master)
[![npm](https://img.shields.io/npm/v/think-cache-redis.svg?style=flat-square)](https://www.npmjs.com/package/think-cache-redis)

Use redis to cache data

## Install

```
npm install think-cache-redis-cluster
```


## How to Usage

edit config file `src/config/adapter.js`, add options:

```js
const redisCache = require('think-cache-redis');
exports.cache = {
  type: 'redis',
  common: {
    timeout: 24 * 3600 * 1000 // millisecond
  },
  redis: {
    handle: redisCache,
    port: 6379,
    host: '127.0.0.1',
    password: ''
  }
}
```
redis config see at https://github.com/luin/ioredis/blob/master/lib/redis.js

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