Redis

Redis

Tips

# 使用配置文件启动
wget http://download.redis.io/redis-stable/redis.conf
redis-server redis.conf
# macOS 安装
brew install redis
# 通过 docker 启动
# 数据存储于 ~/data/redis
docker run --rm -it -v ~/data/redis:/data -p 6379:6379 --name my-redis redis redis-server --appendonly ye

Stream

Module

CHANGELOG

5.0

  • 新增 stream 类型

4.0

3.2.0

  • 参考

  • GEO API

  • BITFIELD command

  • script effects replication 集群下只同步被脚本修改的内容,而不是分发脚本到所有节点执行

  • Lua scripts debugger VIDEO: New Redis Lua scripts debugger: a short intro

  • slaves and masters are in agreement about what keys are expired during read operations.

  • SPOP now accepts an optional count argument

  • RDB AUX fields

  • Sentinel can now scale monitoring many masters

FAQ

MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled.

redis-cli
# config set stop-writes-on-bgsave-error no

RESP3

https://gist.github.com/antirez/2bc68a9e9e45395e297d288453d5d54c

目前的 RESP 是 QA 模式,性能和处理能力上有限