当前位置:网站首页>Redis 命令大全
Redis 命令大全
2022-04-23 04:18:00 【猎人在吃肉】
一、命令目录
1.1、key(键)
- keys
- del
- type
- pexpire
- ttl
- exists
- dump
- expire
- expireat
- migrate
- move
- object
- persist
- pexpireat
- pttl
- randomkey
- rename
- renamenx
- restore
- sort
- scan
1.2、String(字符串)
- set ,其中,
set key value nx ex time
等价于setnx key value
和expire key time
操作。 - get
- append
- bitcount
- bitop
- decr
- decrby
- getbit
- getrange
- getset
- incr
- incrby
- incrbyfloat
- mget
- mset
- msetnx
- psetex
- setbit
- setex
- setnx ,key 不存在时,才能 添加成功。
- setrange
- strlen
1.3、 Hash(哈希表)
1.4、List(列表)
- llen
- lpop
- lrange
- blpop
- brpop
- brpoplpush
- lindex
- linsert
- lpush
- lpushx
- lrem
- lset
- ltrim
- rpop
- rpoplpush
- rpush
- rpushx
1.5、Set(集合)
- sadd
- smembers
- scard
- sdiff
- sdiffstore
- sinter
- sinterstore
- sismember
- smove
- spop
- srandmember
- srem
- sunion
- sunionstore
- sscan
1.6、Sorted Set(有序集合)
- zadd
- zcard
- zcount
- zincrby
- zrange
- zrangebyscore
- zrank
- zrem
- zremrangebyrank
- zremrangebyscore
- zrevrange
- zrevrangebyscore
- zrevrank
- zscore
- zunionstore
- zinterstore
- zscan
1.7、Pub/Sub(发布/订阅)
1.8、Transaction(事务)
1.9、Script(脚本)
1.10、Connection(连接)
1.11、Server(服务器)
- bgrewriteaof
- bgsave
- client getname
- client kill
- client list
- client setname
- config get
- config resetstat
- config rewrite
- config set
- dbsize
- debug object
- debug segfault
- flushall
- flushdb
- info
- lastsave
- monitor
- psync
- save
- shutdown
- slaveof
- slowlog
- sync
- time
二、文档
以下文章翻译自 redis.io/documentation 文档。
2.1、 键空间通知(keyspace notification)
键空间通知(keyspace notification)目录
2.2、事务(transaction)
- 用法
- 事务中的错误
- 为什么 Redis 不支持回滚(roll back)
- 放弃事务
- 使用 check-and-set 操作实现乐观锁
- 了解 WATCH
- 使用 WATCH 实现 ZPOP
- Redis 脚本和事务
2.3、发布与订阅(pub/sub)
2.4、 复制(Replication)
2.5、通信协议(protocol)
2.6、持久化(persistence)
- Redis 持久化
- RDB 的优点
- RDB 的缺点
- AOF 的优点
- AOF 的缺点
- RDB 和 AOF ,我应该用哪一个?
- RDB 快照
- 快照的运作方式
- 只进行追加操作的文件(append-only file,AOF)
- AOF 重写
- AOF 有多耐久?
- 如果 AOF 文件出错了,怎么办?
- AOF 的运作方式
- 怎么从 RDB 持久化切换到 AOF 持久化
- RDB 和 AOF 之间的相互作用
- 备份 Redis 数据
- 容灾备份
2.7、Sentinel
- 获取 Sentinel
- 启动 Sentinel
- 配置 Sentinel
- 主观下线和客观下线
- 每个 Sentinel 都需要定期执行的任务
- 自动发现 Sentinel 和从服务器
- Sentinel API
- 故障转移
- TILT 模式
- 处理
-BUSY
状态 - Sentinel 的客户端实现
2.8、 集群教程
- 集群简介
- Redis 集群数据共享
- Redis 集群中的主从复制
- Redis 集群的一致性保证(guarantee)
- 创建并使用 Redis 集群
- 创建集群
- 集群的客户端
- 使用
redis-rb-cluster
编写一个示例应用 - 对集群进行重新分片
- 一个更有趣的示例应用
- 故障转移测试
- 添加新节点到集群
- 移除一个节点
2.9、Redis 集群规范
版权声明
本文为[猎人在吃肉]所创,转载请带上原文链接,感谢
https://xiaojin21cen.blog.csdn.net/article/details/118083269
边栏推荐
- A new method for evaluating the quality of metagenome assembly - magista
- Go反射法则
- 229. 求众数 II
- 单极性非归零NRZ码、双极性非归零NRZ码、2ASK、2FSK、2PSK、2DPSK及MATLAB仿真
- Qt程序集成EasyPlayer-RTSP流媒体播放器出现画面闪烁是什么原因?
- 国外LEAD,联盟经理常见问答
- 秒杀所有区间相关问题
- 【BIM入门实战】Revit建筑墙体:构造、包络、叠层图文详解
- LabVIEW 小端序和大端序区别
- Effects of antibiotics on microbiome and human health
猜你喜欢
Go反射法则
Difference between LabVIEW small end sequence and large end sequence
Does China Mobile earn 285 million a day? In fact, 5g is difficult to bring more profits, so where is the money?
QT program integration easyplayer RTSP streaming media player screen flicker what is the reason?
matlab讀取多張fig圖然後合並為一張圖(子圖的形式)
STM32单片机ADC规则组多通道转换-DMA模式
Single chip microcomputer serial port data processing (2) -- ucosiii + cyclic queue receiving data
[latex] formula group
阿里云IoT流转到postgresql数据库方案
VSCode配置之Matlab极简配置
随机推荐
Network principle | connection management mechanism in TCP / IP important protocol and core mechanism
一个函数秒杀2Sum 3Sum 4Sum问题
无线键盘全国产化电子元件推荐方案
Understand the gut organ axis, good gut and good health
使用大华设备开发行AI人流量统计出现时间不正确的原因分析
Why recommend you to study embedded
VHDL implementation of 32-bit binary to BCD code
伦敦银最新价格走势图与买卖点
Xiaomi, qui a établi le plus grand volume de ventes de téléphones portables domestiques sur le marché d'outre - mer, se concentre de nouveau sur le marché intérieur
记录一下盲注脚本
无线充电全国产化电子元件推荐方案
eksctl 部署AWS EKS
华为机试--高精度整数加法
A function second kill 2sum 3sum 4sum problem
Summary of knowledge map (3)
Nature medicine reveals individual risk factors of coronary artery disease
MATLAB lit plusieurs diagrammes fig et les combine en un seul diagramme (sous forme de sous - Diagramme)
STM32F4单片机ADC采样及ARM-DSP库的FFT
[AI vision · quick review of NLP natural language processing papers today, No. 32] wed, 20 APR 2022
单片机串口数据处理(1)——串口中断发送数据