当前位置:网站首页>Redis (II) - redis General Command
Redis (II) - redis General Command
2022-07-07 06:24:00 【yutao_ five hundred and seventeen】
Redis General Command
KEYS: Check all that match the template key, Don't mind using it on production equipment .
adopt help[command] You can check the specific usage of a command . for example
SET Insert a key value pair of string type
MSET Insert multiple key value pairs of string type
DEL Delete specified KEY
EXISTS Judge KEY Whether there is
EXPIRE Give me a KEY Set expiration date . When the validity period expires ,KEY Automatically delete
TTL View one KEY The remaining validity period of
ttl Return value
Greater than or equal to 0 The integer of : Key remaining expiration time
-1: No expiration time set
-2: The key doesn't exist
DBSIZE Total number of keys
TYPE The data structure type of the key
GET according to key obtain string Type of value
INCR Let an integer key Self increasing 1
INCRBY Let an integer key Increment the specified step
INCRBYFLOAT Let a floating-point key Increment the specified step
INCRBYFLOAT Let a floating-point key Increment the specified step
SETNX: Add one String Key value pairs of type , The premise is this key non-existent , Otherwise, do not execute .
SETEX: Add one String Key value pairs of type , And specify the validity period .
边栏推荐
- JVM命令之- jmap:导出内存映像文件&内存使用情况
- jvm命令之 jcmd:多功能命令行
- 如何在Touch Designer 2022版中设置解决Leap Motion不识别的问题?
- DC-7靶机
- C语言整理(待更新)
- JVM command - jmap: export memory image file & memory usage
- When we talk about immutable infrastructure, what are we talking about
- 安装mongodb数据库
- Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
- JVM监控及诊断工具-命令行篇
猜你喜欢
Peripheral driver library development notes 43: GPIO simulation SPI driver
港科大&MSRA新研究:关于图像到图像转换,Fine-tuning is all you need
DC-7靶机
JMeter's own functions are not enough? Why don't you develop one yourself
ICML 2022 | explore the best architecture and training method of language model
win系统下安装redis以及windows扩展方法
3531. Huffman tree
Open the blue screen after VMware installation
Ideas of high concurrency and high traffic seckill scheme
Haqi projection Black Horse posture, avec seulement six mois de forte pénétration du marché des projecteurs de 1000 yuans!
随机推荐
Sequential storage of stacks
安装mongodb数据库
C语言面试 写一个函数查找两个字符串中的第一个公共字符串
JVM command - jmap: export memory image file & memory usage
Several key steps of software testing, you need to know
Software testing knowledge reserve: how much do you know about the basic knowledge of "login security"?
对称的二叉树【树的遍历】
面试中有哪些经典的数据库问题?
3531. 哈夫曼树
"Parse" focalloss to solve the problem of data imbalance
安装VMmare时候提示hyper-v / device defender 侧通道安全性
laravel 使用腾讯云 COS5全教程
基本Dos命令
Niuke Xiaobai monthly race 52 E. sum logarithms in groups (two points & inclusion and exclusion)
微信小程序隐藏video标签的进度条组件
线性代数(一)
【OpenCV】形态学滤波(2):开运算、形态学梯度、顶帽、黑帽
[shell] summary of common shell commands and test judgment statements
SubGHz, LoRaWAN, NB-IoT, 物联网
c语言(结构体)定义一个User结构体,含以下字段: