当前位置:网站首页>Redis command Encyclopedia
Redis command Encyclopedia
2022-04-23 04:31:00 【The hunter is eating meat】
List of articles
One 、 Command directory
1.1、key( 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( character string )
String( character string ) Catalog
- set , among ,
set key value nx ex time
Equivalent tosetnx key value
andexpire key time
operation . - get
- append
- bitcount
- bitop
- decr
- decrby
- getbit
- getrange
- getset
- incr
- incrby
- incrbyfloat
- mget
- mset
- msetnx
- psetex
- setbit
- setex
- setnx ,key When there is no , can Add success .
- setrange
- strlen
1.3、 Hash( Hashtable )
1.4、List( list )
- llen
- lpop
- lrange
- blpop
- brpop
- brpoplpush
- lindex
- linsert
- lpush
- lpushx
- lrem
- lset
- ltrim
- rpop
- rpoplpush
- rpush
- rpushx
1.5、Set( aggregate )
- sadd
- smembers
- scard
- sdiff
- sdiffstore
- sinter
- sinterstore
- sismember
- smove
- spop
- srandmember
- srem
- sunion
- sunionstore
- sscan
1.6、Sorted Set( Ordered set )
Sorted Set( Ordered set ) Catalog
- zadd
- zcard
- zcount
- zincrby
- zrange
- zrangebyscore
- zrank
- zrem
- zremrangebyrank
- zremrangebyscore
- zrevrange
- zrevrangebyscore
- zrevrank
- zscore
- zunionstore
- zinterstore
- zscan
1.7、Pub/Sub( Release / subscribe )
Pub/Sub( Release / subscribe ) Catalog
1.8、Transaction( Business )
Transaction( Business ) Catalog
1.9、Script( Script )
1.10、Connection( Connect )
1.11、Server( The 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
Two 、 file
The following article is translated from redis.io/documentation file .
2.1、 Key space notification (keyspace notification)
Key space notification (keyspace notification) Catalog
2.2、 Business (transaction)
Business (transaction) Catalog
- usage
- Mistakes in the transaction
- Why? Redis Rollback is not supported (roll back)
- Give up the business
- Use check-and-set Operation to achieve optimistic lock
- understand WATCH
- Use WATCH Realization ZPOP
- Redis Scripts and transactions
2.3、 Publish and subscribe (pub/sub)
Publish and subscribe (pub/sub) Catalog
- The format of the message
- A subscription model
- Receive the same message through channel and mode
- Total subscriptions
- Programming examples
- Client library implementation tips
2.4、 Copy (Replication)
- How replication works
- Partial resynchronization
- To configure
- Read only from server
- From server related configuration
- The primary server only has at least N In the case of slave servers , Just write
2.5、 Communication protocol (protocol)
Communication protocol (protocol) Catalog
- request
- The network layer
- New uniform request agreement
- reply
- State the reply
- Error response
- Integer reply
- Batch reply
- Multiple batch replies
- Empty elements in multiple batch replies
- Multi command and pipeline
- Inline command
- High performance Redis Protocol Analyzer
2.6、 Persistence (persistence)
Persistence (persistence) Catalog
- Redis Persistence
- RDB The advantages of
- RDB The shortcomings of
- AOF The advantages of
- AOF The shortcomings of
- RDB and AOF , Which one should I use ?
- RDB snapshot
- How snapshots work
- Files for append operation only (append-only file,AOF)
- AOF rewrite
- AOF How durable ?
- If AOF There's something wrong with the file , What do I do ?
- AOF How it works
- How can I RDB Persistence switch to AOF Persistence
- RDB and AOF The interaction between
- Backup Redis data
- Disaster recovery backup
2.7、Sentinel
- obtain Sentinel
- start-up Sentinel
- To configure Sentinel
- Subjective offline and objective offline
- Every Sentinel All tasks that need to be performed on a regular basis
- Auto discovery Sentinel And from the server
- Sentinel API
- Fail over
- TILT Pattern
- Handle
-BUSY
state - Sentinel The client implementation of
2.8、 Cluster tutorial
- Introduction of the cluster
- Redis Cluster data sharing
- Redis Master-slave replication in a cluster
- Redis Cluster consistency guarantee (guarantee)
- Create and use Redis colony
- Create clusters
- Cluster clients
- Use
redis-rb-cluster
Write a sample application - Regroup the cluster
- A more interesting example application
- Failover test
- Add new nodes to the cluster
- Remove a node
2.9、Redis Cluster specification
版权声明
本文为[The hunter is eating meat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230417436477.html
边栏推荐
- 单极性非归零NRZ码、双极性非归零NRZ码、2ASK、2FSK、2PSK、2DPSK及MATLAB仿真
- VHDL implementation of 32-bit binary to BCD code
- 【时序】基于 TCN 的用于序列建模的通用卷积和循环网络的经验评估
- 记录一下盲注脚本
- 华为机试--高精度整数加法
- Go反射—Go语言圣经学习笔记
- 顺序表的基本操作
- zynq平台交叉编译器的安装
- eksctl 部署AWS EKS
- Xiaohongshu was exposed to layoffs of 20% as a whole, and the internal volume among large factories was also very serious
猜你喜欢
[AI vision · quick review of today's sound acoustic papers, issue 3] wed, 20 APR 2022
【测绘程序设计】坐标方位角推算神器(C#版)
[AI vision · quick review of robot papers today, issue 32] wed, 20 APR 2022
针对NFT的网络钓鱼
递归调用--排列的穷举
Go反射法则
Cause analysis of incorrect time of AI traffic statistics of Dahua Equipment Development Bank
Use recyclerview to realize left-right side-by-side classification selection
洛谷P1858 【多人背包】 (背包求前k优解)
zynq平台交叉编译器的安装
随机推荐
无线键盘全国产化电子元件推荐方案
记录一下盲注脚本
KVM error: Failed to connect socket to ‘/var/run/libvirt/libvirt-sock‘
为什么推荐你学嵌入式
Matlab minimalist configuration of vscode configuration
TreeSet课后练习
电钻、电锤、电镐的区别
Apache Bench(ab 压力测试工具)的安装与使用
Single chip microcomputer serial port data processing (1) -- serial port interrupt sending data
Does China Mobile earn 285 million a day? In fact, 5g is difficult to bring more profits, so where is the money?
Qtspim manual - Chinese Translation
在AWS控制台创建VPC(无图版)
Express中间件②(中间件的分类)
AWS EKS 部署要点以及控制台与eksctl创建的差异
IEEE Transactions on Industrial Informatics(TII)投稿须知
RuntimeError: output with shape [4, 1, 512, 512] doesn‘t match the broadcast shape[4, 4, 512, 512]
AWS EKS添加集群用户或IAM角色
Cortex-M3寄存器组、汇编语言与C语言的接口介绍
Mysql---数据读写分离、多实例
1个需求的一生,团队协作在云效钉钉小程序上可以这么玩