当前位置:网站首页>Redis General Command
Redis General Command
2022-06-12 15:43:00 【ZgaoYi】
1.String type
String Three types of formats
- character string : Normal string
- int type : Integer types , Can do self increasing , Since the reduction of operating
- float type : Floating point type , You can do auto increase and auto decrease
- Redis Of key Format :[ Project name ]:[ Business name ]:[ type ]:[id]

2.Hash type
Hash type , Also called hash , Its value It's an unordered Dictionary , Be similar to Java Medium HashMap structure .
practice :
3.List type
Redis Medium List The type and Java Medium LinkedList similar , It can be regarded as a two-way linked list structure . It can support both forward and reverse retrieval .
Same characteristics LinkedList
- Orderly
- Elements can be repeated
- Insert and delete fast
- The query speed is average
practice :
4.Set type
Redis Of Set Structure and Java Medium HashSet be similar , Can be seen as a value by null Of HashMap. Because it is also a Hash surface , So it also has HashSet Similar features :
- disorder
- Element is not repeatable
- Quick search
- Support intersection 、 Combine 、 Difference set and other functions
practice :
5.SortSet type
Redis Of SortSet It's a sortable set aggregate , And Java Medium treeSet Some similar , But the underlying data structure is very different .SortSet Each element in the has a score attribute , Can be based on score Attribute to sort elements , The bottom implementation is a jump table plus hash surface
SortedSet It has the following characteristics :
- Sortable
- Element is not repeatable
- Fast query speed
because SortedSet SORTABILITY of , Often used to implement functions like leaderboards

边栏推荐
- How to analyze the running time and CPU utilization of Go programs?
- UE4 常用类型转换
- RARP总结(TCP/IP详解卷1/2)
- Servlet knowledge explanation (2)
- Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11
- sql server 2008 的导入导出步骤
- [jvm learning] types of GC and allocation process of objects on JVM heap
- Method reference instance method reference
- Introduction to microservices
- Use of multithreading
猜你喜欢

ROS beginners write the server that the little turtle rotates a certain angle at a certain speed
![CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small](/img/2c/63f1c865105a74ed651bb0ef97ab60.png)
CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small

Apache Kylin 历险记

IMU learning records

Acwing summer daily question (sexy prime number on June 10)

Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11

Fiddler packet capturing (mobile app)

5g new scheme! Upgrade the existing base station and UE simulator to 5g millimeter wave band

Broadcast and multicast (tcp/ip details volume 1/2)

Simple crawler framework: parsing 51job page position information
随机推荐
Two implementation methods of generic interface
Loadbalancer load balancer
TF learning notes in ROS
Acwing summer daily question (sexy prime number on June 10)
如何使用Grafana轻松实现OVL数据可视化
Classification of annotations
Use of thread communication
The difference and brief description of "file name" and < file name > import header file used in # include
org. xml. sax. SAXParseException; lineNumber: 63; columnNumber: 10; The definition of "mapper" in the related type must be matched with "(CAC
ER diagram made by StarUML based on the last student achievement management system
Rust小技巧 - 通过FFI编程运行tensorrt模型
Introduction and download website of common data of GIS, remote sensing, hydrology and Geography (2), supplementary~
ssm中的文件上传和下载
5g new scheme! Upgrade the existing base station and UE simulator to 5g millimeter wave band
Kinect2.0+ORBSLAM2_ with_ pointcloud_ map
Getting started with JMeter
CUDA out of memory or brokenpipeerror: [errno 32] broken pipe or oserror: [winerror 1455] solution to the problem that the page file is too small
Task output: dense snow ice city theme song 0612
华为设备配置CE双归属
Deepin20.6 rtx3080 installer le lecteur de carte graphique 510.60.02, cuda 11.6, pytorch1.11