当前位置:网站首页>Basic knowledge of redis
Basic knowledge of redis
2022-07-28 09:53:00 【MountainYanYL】
redis Supported data types
*----------------------------------------------------------------------------------------------
1、string ----key value Binary system Can store pictures or objects set get
Application scenarios : Count the number of visitors to the website 、 The current number of people online 、 Number of fans
2、hash ----- Set of key value pairs , Used to store objects ,hmset ,hgetall
-----------------------------------------------------------------------------------------------
string A field of type ,field and value Mapping table
Application scenarios : modify 、 increase 、 Delete Properties of the user every last hash Can be stored 2 Of 32 Power -1 Key value pairs .
3、list list , A simple list of strings . In insertion order , You can insert data from the head or tail
Application scenarios : Get the latest news 、 Attention list , Fans list , Spike into the queue ,
-----------------------------------------------------------------------------------------------
4、set aggregate disorder Add one string Element to key Successfully returned in the corresponding set 1 If it already exists return 0
Application scenarios :
1: Use intersection Seek common friends ,
2: Using uniqueness Seek the independence of the website ip When it comes to seconds , Ensure that there is only one mobile number , Participate in the second kill
-----------------------------------------------------------------------------------------------
5、 zset Ordered set If there is I'll update zset Members are the only
Application scenarios :
1: Timeline
2: Game scoreboard
3: Player scores change zadd
4: score vip Ordinary users First vip
边栏推荐
- OSS直连上传-Rails服务实践
- Time series analysis 41 - time series prediction tbats model
- MySQL master-slave architecture. After the master database is suspended and restarted, how can the slave database automatically connect to the master database
- Window源码解析(三):Window的更新机制
- 多线程一定能优化程序性能吗?
- go语言切片Slice和数组Array对比panic runtime error index out of range问题解决
- 如何使用JWT进行身份验证与授权
- Plato Farm-以柏拉图为目标的农场元宇宙游戏
- C countdown tool
- 手机号,固话正则表达式
猜你喜欢

这款微信插件太好用了

软件测试与质量学习笔记2----黑盒测试

ECCV 2022 | can be promoted without fine adjustment! Registration based anomaly detection framework for small samples

JS array is de duplicated, the ID is the same, and a value is added and merged
![ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器](/img/90/40869d7c03f09010beb989af07e2f0.png)
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器

Leetcode - hashtable topic

超级原始人系列盲盒即将上线,PlatoFarm赋能超多权益

多线程一定能优化程序性能吗?

Detailed explanation of various types of files in MySQL

设计一个支持百万用户的系统
随机推荐
Detailed explanation of various types of files in MySQL
ARouter源码解析(一)
7.27 最小生成树阶段性测试题解
Analysis of the internal principle of LinkedList
CTF中常见的RSA相关问题总结:基础RSA加密与解密
LeetCode - 哈希表专题
ARouter源码解析(三)
Window source code analysis (II): the adding mechanism of window
Domain events and integration events are not so big
ThresholdFilter简介说明
在Plato Farm新经济模型下,如何在游戏中获取更多MARK
Analysis of HashSet internal principle
分支与循环(1)
高温持续,公交企业开展安全专项培训
View的工作原理
Window source code analysis (IV): window deletion mechanism
j s的数组方法,循环
Arouter source code analysis (I)
Create SSL certificate using OpenSSL
HashSet内部原理解析