当前位置:网站首页>002_Redis_String类型常见的操作命令
002_Redis_String类型常见的操作命令
2022-04-23 02:02:00 【_yummy_】
002_Redis_String类型常见的操作命令
1、关于增、改、查
-
SET:添加或者修改一个已经存在的String类型的键值对
-
GET:根据key获取String类型的value
-
MSET:批量添加多个String类型的键值对
-
MGET:根据多个key批量查询多个String类型的value
2、关于数字自增
-
INCR:让一个整型的可以自增1
-
INCRBY:让一个整型的key按照指定字长自增
-
INCRBYFLOAT:让一个浮点类型的数字自增并且可以指定字长
3、其他组合命令
-
SETNX:添加一个String类型的键值对。前提是这个String类型的键不存在
-
SETEX:添加一个String类型的键值对并且指定有效期
小蜜蜂学Redis002,有点困了。
版权声明
本文为[_yummy_]所创,转载请带上原文链接,感谢
https://blog.csdn.net/weixin_43890515/article/details/124262618
边栏推荐
猜你喜欢
我国科学家揭示突破水稻产量瓶颈新机制
ESP32使用freeRTOS的消息队列
世界读书日 | 技术人不要错过的好书(IT前沿技术)
How to choose a good dial-up server?
Error in face detection and signature of Tencent cloud interface
揭秘被Arm编译器所隐藏的浮点运算
How to change the size of SVG pictures without width in openlayer
Performance introduction of the first new version of cdr2022
How does Axure set the content of the text box to the current date when the page is loaded
搭建网站是用物理机还是云主机好?
随机推荐
Analyze the three functions of static proxy IP.
How to initialize "naming and surname" in C language
Batch multiple files into one hex
PID refinement
keil mdk中文乱码,两种解决方法,字体不再难看
Performance introduction of the first new version of cdr2022
2022.4.22-----leetcode.396
How to choose a good dial-up server?
单片机和4G模块通信总结(EC20)
Nanny level tutorial on building personal home page (II)
LeetCode 447. Number of boomerangs (permutation and combination problem)
A simple and open source navigation website source code
FL studio20. 8 the latest Chinese version installation and download graphic tutorial
【dpdk】10. Dpdk DNS learning notes
Use of j-link RTT
How to "gracefully" measure system performance
Redis memory recycling strategy
The sixth season of 2022, the perfect children's model IPA national race leads the yuanuniverse track
Basic knowledge of software testing, you can meet the interviewer after reading it
Unicorn bio raised $3.2 million to turn prototype equipment used to grow meat into commercial products