当前位置:网站首页>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 :
边栏推荐
- be based on. NETCORE development blog project starblog - (13) add friendship link function
- 每日一练:删除有序数组中的重复项
- EditText listening focus
- 运营级智慧校园系统源码 智慧校园小程序源码+电子班牌+人脸识别系统
- Windows平台下安装MySQL(附:Navicat Premium 12 “使用” 教程)
- Redis常用命令手册
- Baidu online disk login verification prompt: unable to access this page, or the QR code display fails, the pop-up window shows: unable to access this page, ensure the web address....
- Redis是什么
- Single machine multi instance MySQL master-slave replication
- Zoom with mouse wheel
猜你喜欢
![[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter](/img/7b/f9cea5dfe6831f5f226b907e2095eb.jpg)
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter

每日一题:数组中数字出现的次数2

每日一题:移除元素

【leetcode】17. Letter combination of telephone number

Realization of beauty system with MATLAB

Nodejs安装和下载

Cross domain problem of canvas drawing caused by background image cache

架构实战营|模块5

Give you a project, how will you carry out performance testing (I)

Report on the convenient bee Lantern Festival: the first peak sales of pasta products this year; prefabricated wine dumplings became the winners
随机推荐
be based on. NETCORE development blog project starblog - (13) add friendship link function
Reference materials in the process of using Excel
Comparison between winding process and lamination process
用户登录(记住用户)&用户注册(验证码) [运用Cookie Session技术]
Jbridge bridging frame technology for AI computing power landing
Nodejs安装和下载
Typescript -- Section 3: Interface
JVM工作原理介绍
If you can play these four we media operation tools, the sideline income of 6000+ is very easy
畢業三年的25歲碼農總結
请问同花顺上开户安全吗
Is the fund reliable and safe
转载:VTK笔记-裁剪分割-三维曲线或几何切割体数据(黑山老妖)
运营级智慧校园系统源码 智慧校园小程序源码+电子班牌+人脸识别系统
JDBC连接、断开数据库的封装
[Gym 102423]-Elven Efficiency | 思维
Typescript -- Section 7 enumeration
LinkedIn datahub - experience sharing
[image registration] improved SAR image registration based on sar-sift with matlab code
Chrome浏览器的基本使用