当前位置:网站首页>Redis common command manual
Redis common command manual
2022-06-29 00:37:00 【Java Architect in Penghu】
Redis Commands can be roughly divided into the following :
Server side (server) command
client (client) command
Key command (key)
Data type command
Function application command
This book 《Redis Common command manual 》 It introduces Redis Commands often used in , Including key commands and data type commands , The data type commands include String、List、Hash、Set as well as Sorted Set.
key (Key) command
We know Redis yes key-value Type database , Use key Yes value For storage , therefore , key (Key) The order is Redis A class of commands often used in . Common key commands are as follows :
Hash command
Hash( Hash hash ) yes Redis One of the basic data types , It is stored in the form of a string mapping table .Hash Ideal for storing objects . The common commands are as follows :
String command
Strings( character string ) Structure is Redis One of the basic data types of , We can operate on it through related string commands , Setting up 、 retrieval 、 Delete and so on . String types have many application scenarios , For example, the attention and cancellation of microblog fans .
Here's how Redis String command in Changying :
List command
List yes Redis One of the most commonly used data types in .Redis Provides a number of commands for manipulating list types , With these commands, you can add an element to the head of the list , Or tail and many other operations .
List The common commands are as follows :
Set command
Redis set Data types consist of key value pairs , These key value pairs have unordered 、 The only property , This is related to Python Of set be similar . When the last element in the collection is removed , The data structure will also be automatically deleted , Memory will also be reclaimed .
because set Sets can achieve de duplication , So it has many applicable scenarios , For example, user lottery activities , Use set Set can ensure that the same user is not selected for the second time .
Redis set The common commands are as follows :
Zset command
zset yes Redis One of the most distinctive data types provided , First of all, it's a set, This ensures internal value Uniqueness of value , Second, it gives everyone value Added a score( The score is ) attribute , The ordering is realized by sorting the scores . For example, use zset Structure to store students' grades ,value The value represents the student's ID,score It's your test results . We can sort the grades according to the scores to get the students' ranking .
The following is listed zset Common commands , As shown below :
边栏推荐
- 每日一题:数组中数字出现的次数2
- Cross domain problem of canvas drawing caused by background image cache
- oracle 去掉html标签
- Accessories and working process of machine vision system
- PR 2021 quick start tutorial, how to use audio editing in PR?
- Document management.
- LG. Hankson's interesting questions, C language
- Excel使用过程中的参考资料
- 2022_ 2_ 16 the second day of learning C language_ Constant, variable
- Sword finger offer 12 Path in matrix
猜你喜欢

This thing is called a jump watch?

pinhole camera model

LinkedIn datahub - experience sharing

Notes: three ways to define setters and Getters

Go1.18 new feature: discard strings Title Method, a new pit!

12. Détection d'objets Mask rcnn
![[leetcode] 522. Longest special sequence II violence + double pointer](/img/88/3ddeefaab7e29b8eeb412bb5c3e9b8.png)
[leetcode] 522. Longest special sequence II violence + double pointer

The magical zero knowledge proof can not only keep secrets, but also make others believe you!
![[image registration] improved SAR image registration based on sar-sift with matlab code](/img/69/4e78c6cef45b2e4d133222a4372e43.jpg)
[image registration] improved SAR image registration based on sar-sift with matlab code
![用户登录(记住用户)&用户注册(验证码) [运用Cookie Session技术]](/img/31/c84c1e15aa1c73814c4ad643e3dd36.png)
用户登录(记住用户)&用户注册(验证码) [运用Cookie Session技术]
随机推荐
FATAL ERROR: Could not find ./ bin/my_ print_ Solutions to defaults
Redis是什么
Notes: three ways to define setters and Getters
Is it safe to open an account on great wisdom
每日一题: 数组中数字出现的次数
LG. Hankson's interesting questions, C language
利用verilogA模块采样
Software testing tools: complete and precise
【leetcode】153. Find the lowest value in the rotation sort array
JDBC连接、断开数据库的封装
卷绕工艺与叠片工艺的对比
Matrix compression
LeetCode每日一题:实现strStr()
旋转接头安装使用注意事项
Is the fund reliable and safe
scp拷贝文件夹
用户登录(记住用户)&用户注册(验证码) [运用Cookie Session技术]
Two fresh students: one is practical and likes to work overtime, and the other is skilled. How to choose??
Along with the notes: methods simulating array like classes
Remove HTML tags from Oracle