当前位置:网站首页>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
边栏推荐
- Makefile文件是什麼?
- 2022.4.20-----leetcode. three hundred and eighty-eight
- 浅析一下隧道代理IP的优缺点。
- How can e-procurement become a value-added function in the supply chain?
- About how to import C4d animation into lumion
- Encrypted compressed backup bat script
- Quel est le fichier makefile?
- Easyswool environment configuration
- 有哪些常见的代理ip问题?
- What is a boolean type?
猜你喜欢

LeetCode 447. Number of boomerangs (permutation and combination problem)

MySQL basic record

搭建网站是用物理机还是云主机好?

About how to import C4d animation into lumion

Encrypted compressed backup bat script

What is a proxy IP pool and how to build it?
Unicorn bio raised $3.2 million to turn prototype equipment used to grow meat into commercial products

RuntimeError: The size of tensor a (4) must match the size of tensor b (3) at non-singleton dimensio

【dpdk】10. Dpdk DNS learning notes

What categories do you need to know before using proxy IP?
随机推荐
Dimension C China helping farmers in rural areas warms people's hearts the third stop is jiabaoguo farm
PHP & laravel & master several ways of generating token by API and some precautions (PIT)
Heap overflow of kernel PWN basic tutorial
2022 low voltage electrician examination questions and answers
What is a proxy IP pool and how to build it?
How to change the size of SVG pictures without width in openlayer
What problems will you encounter when dialing VPS?
Analyze the three functions of static proxy IP.
Network jitter tool clumsy
How to choose a good dial-up server?
[Dahua cloud native] micro service chapter - service mode of five-star hotels
Leetcode40 - total number of combinations II
Quel est le fichier makefile?
How to install mysql-5.7.9 in RPM mode under Linux system
Question bank and online simulation examination for safety management personnel of hazardous chemical business units in 2022
Is CICC fortune a company with CICC? Is it safe
Nanny level tutorial on building personal home page (II)
Makefile文件是什么?
Leetcode46 Full Permutation
LeetCode 447. Number of boomerangs (permutation and combination problem)