当前位置:网站首页>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 :
边栏推荐
- Use and principle of handlerthread
- Haskell 配置 VS code 开发环境 (2022年6月)
- JVM工作原理介绍
- How does the JVM bottom layer implement synchronized
- Summary of software testing cognition
- mysql 8.0以上报2058 解决方式
- 旋转接头安装使用注意事项
- [Gym 102423]-Elven Efficiency | 思维
- Is the fund reliable and safe
- [image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
猜你喜欢

LeetCode每日一题:实现strStr()
![[image detection] recognition of the front and back of a coin based on texture features with matlab code attached](/img/84/0a364adcd373cc40c9bc7b70d50f93.jpg)
[image detection] recognition of the front and back of a coin based on texture features with matlab code attached

Install MySQL on Windows platform (with Navicat premium 12 "using" tutorial)

PR 2021 quick start tutorial, how to use audio editing in PR?

矩 阵 压 缩
![[image registration] SAR image registration based on particle swarm optimization Improved SIFT with matlab code](/img/b5/02979b50db885f0606dce455182ac4.jpg)
[image registration] SAR image registration based on particle swarm optimization Improved SIFT with matlab code

Cross domain problem of canvas drawing caused by background image cache

Windows平台下安装MySQL(附:Navicat Premium 12 “使用” 教程)

Technology sharing | software development process that you must understand if you want to get started with testing

Accessories and working process of machine vision system
随机推荐
[image denoising] matlab code for removing salt and pepper noise based on fast and effective multistage selective convolution filter
Give you a project, how will you carry out performance testing (I)
MNIST handwritten numeral recognition demo based on pytorch framework
[200 opencv routines] 101 adaptive median filter
[agile 5.1] core of planning: user stories
Typescript -- Section 6 generic
小白创业做电商,选对商城系统很重要!
MapReduce case
Bug risk level
Along with the notes: methods simulating array like classes
Haskell configuring vs code development environment (june2022)
矩 阵 压 缩
Is it safe to open an account on great wisdom
Go1.18 new feature: discard strings Title Method, a new pit!
Windows平台下安装MySQL(附:Navicat Premium 12 “使用” 教程)
卷绕工艺与叠片工艺的对比
Mapbox GL loading local publishing DEM data
Sampling with VerilogA module
MSYQL is abnormal. Don't worry. Mr. Allen will point out the puzzle
Encapsulation of JDBC connection and disconnection database