# Redis 集群

## 高速缓存介绍

* 高速缓存利用内存保存数据，读写速度远超硬盘
* 高速缓存可以减少I/O操作，降低I/O压力

## Redis介绍

* Redis是VMware开发的开源免费的KV型NoSQL缓存产品
* Redis具有很好的性能，最多可以提供10万次/秒的读写
* 目前新浪微博团队组建了世界上最大规模的Redis集群

## Redis集群介绍

Redis目前的集群方法分为以下几种：

1.RedisCluster：官方推荐，没有中心节点

2.Codis：中间件产品，360公司开发。

3.Twemproxy：中间件产品，存在中心节点

> 存在中心节点，这个中心节点一旦挂掉以后，整个redis集群将不可用。

## **RedisCluster**

* 无中心节点，客户端与redis直连，不需要中间代理层
* 数据可以被分片存储
* 管理方便，后续可自行增加和摘除节点


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docker.shujuwajue.com/redis-ji-qun.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
