# Redis存储什么类型的数据？

**URL:** https://meta.discourse.org/t/what-type-of-details-does-redis-store/258334
**Category:** Self-hosting
**Created:** [2023年三月16日 06:53 UTC](https://meta.discourse.org/t/what-type-of-details-does-redis-store/258334 "2023-03-16T06:53:44Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![deepak\_bisht](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deepak_bisht/32/298220_2.png) [@deepak\_bisht](https://meta.discourse.org/u/deepak_bisht)
#### Post date: [2023年三月16日 06:53 UTC](https://meta.discourse.org/t/what-type-of-details-does-redis-store/258334/1 "2023-03-16T06:53:44Z")

</div>

我们在 AWS EC2 中安装了 Discourse 官方 Docker 镜像。Redis 在这里有什么用途？Redis 存储了哪些类型的信息？

---

<div class="post-metadata">

### Author: ![deepak\_bisht](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/deepak_bisht/32/298220_2.png) [@deepak\_bisht](https://meta.discourse.org/u/deepak_bisht)
#### Post date: [2023年三月21日 05:12 UTC](https://meta.discourse.org/t/what-type-of-details-does-redis-store/258334/2 "2023-03-21T05:12:52Z")

</div>

请帮助我们解决有关 Redis 的查询。

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [2023年三月21日 06:52 UTC](https://meta.discourse.org/t/what-type-of-details-does-redis-store/258334/3 "2023-03-21T06:52:13Z")

</div>

此主题是关于此主题的最佳主题：

> [@More details on how the Redis cache is utilized?](https://meta.discourse.org/t/more-details-on-how-the-redis-cache-is-utilized/203678/2?u=merefield):
>
> This is the main thing here. The most aggressive cache happens for anonymous requests, so I’d suggest retrying the load test with some anon robots. There are a handful of grepable methods, like Discourse.cache.fetch and DistributedCache.new. We do cache some infrequent config blobs, but the approach to topics is mostly caching the whole response for the anons, allowing the app to craft a response while barely touching the DB. Redis is heavily used for Sidekiq and MessageBus.
