当前位置:网站首页>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
边栏推荐
- 【Echart】echart 入门
- 华为机试--高精度整数加法
- Chlamydia infection -- causes, symptoms, treatment and Prevention
- Second kill all interval related problems
- 上海航芯技术分享 | ACM32 MCU安全特性概述
- QtSpim手册-中文翻译
- [echart] Introduction to echart
- 【测绘程序设计】坐标反算神器V1.0(附C/C#/VB源程序)
- Gut liver axis: host microbiota interaction affects hepatocarcinogenesis
- 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
猜你喜欢
RC低通滤波器的逆系统
单片机串口数据处理(2)——uCOSIII+循环队列接收数据
Supplément: annotation
Difference between LabVIEW small end sequence and large end sequence
[AI vision · quick review of robot papers today, issue 32] wed, 20 APR 2022
STM32单片机ADC规则组多通道转换-DMA模式
[AI vision · quick review of today's sound acoustic papers, issue 3] wed, 20 APR 2022
MYSQL去重方法汇总
/etc/bash_completion.d目录作用(用户登录立刻执行该目录下脚本)
Chlamydia infection -- causes, symptoms, treatment and Prevention
随机推荐
[echart] Introduction to echart
Supplément: annotation
How to regulate intestinal flora? Introduction to common natural substances, probiotics and prebiotics
[AI vision · quick review of today's sound acoustic papers, issue 3] wed, 20 APR 2022
Common string processing functions in C language
Redis 命令大全
[BIM introduction practice] Revit building wall: detailed picture and text explanation of structure, envelope and lamination
减治思想——二分查找详细总结
Express middleware ② (classification of Middleware)
【Pytorch基础】torch.split()用法
VSCode配置之Matlab极简配置
电钻、电锤、电镐的区别
Qtspim manual - Chinese Translation
Leetcode->1 两数之和
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
Coinbase:关于跨链桥的基础知识、事实和统计数据
Operating skills of spot gold_ Wave estimation curve
优麒麟 22.04 LTS 版本正式发布 | UKUI 3.1开启全新体验
STM32上μC/Shell移植与应用
[AI vision · quick review of NLP natural language processing papers today, issue 31] Fri, 15 APR 2022