相信多数人初次接触到 Redis 时,会将其视作一个高性能的缓存,用来缓解数据库压力、加速业务端的响应。但如果仅仅停留在 Redis 等同于缓存这一层理解,实则大大低估了 Redis 的真正能力。Redis 8 在 2024 年正式发布,Redis 已然从一个单纯的 Key-Value 缓存,演变成一个功能全面的数据结构服务器,能够支撑跨行业的实时应用场景。
从缓存到统一数据平台的演进
Redis 最初的名字来自 Remote Dictionary Server(远程字典服务器),而现在的 Redis 8 可称之为更加名副其实。Redis 8 新增了 8 种数据结构,包括:
- Vector Set(向量集合,beta 版本)
- JSON
- Time Series(时间序列)
五种概率型数据结构:
- Bloom Filter(布隆过滤器)
- Cuckoo Filter(布谷鸟过滤器)
- Count-Min Sketch
- Top-K
- T-Digest
至此,Redis 现已支持 18 种现代数据结构,真正成为一个实时多结构数据平台。
传统的缓存视角

现代 Redis 架构

核心高级数据结构及应用场景
JSON 原生存储和查询复杂文档
Redis JSON 模块支持直接存储和查询结构化 JSON 文档,让 Redis 不再只是简单的键值对缓存。
import redis, uuid
cli = redis.Redis(host='127.0.0.1', port=6379, decode_responses=True)
# 一艘新飞船的完整档案
ship = { "captain": "LinS", "fuel": 99.5, "modules": {"shield": 8, "weapon": 12, "cargo": 35}, "logs": [ {"event": "warp", "ts": "2025-09-12T08:00:00Z"}, {: , : } ] }
key =
cli.json().(key, , ship)
weapon_level = cli.json().get(key, )
(, weapon_level)



