当前位置:网站首页>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 .


边栏推荐
- 改变ui组件原有样式
- 对称的二叉树【树的遍历】
- 360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
- Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!
- A freshman's summary of an ordinary student [I don't know whether we are stupid or crazy, but I know to run forward all the way]
- Party A's requirements for those who have lost 800 yuan
- matlab / ENVI 主成分分析实现及结果分析
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- Dc-7 target
- On the discrimination of "fake death" state of STC single chip microcomputer
猜你喜欢

Apple CMS V10 template /mxone Pro adaptive film and television website template

Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!

Several key steps of software testing, you need to know

高并发大流量秒杀方案思路

Jcmd of JVM command: multifunctional command line

JVM命令之 jstat:查看JVM統計信息

Jstat pour la commande JVM: voir les statistiques JVM

693. 行程排序

Dc-7 target

A very good JVM interview question article (74 questions and answers)
随机推荐
"Parse" focalloss to solve the problem of data imbalance
软件测试的几个关键步骤,你需要知道
Haqi projection Black Horse posture, avec seulement six mois de forte pénétration du marché des projecteurs de 1000 yuans!
线性代数(一)
laravel 使用腾讯云 COS5全教程
安装VMmare时候提示hyper-v / device defender 侧通道安全性
Redisl garbled code and expiration time configuration
C language sorting (to be updated)
Apple CMS V10 template /mxone Pro adaptive film and television website template
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
3428. 放苹果
360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
HKUST & MsrA new research: on image to image conversion, fine tuning is all you need
哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
那些自损八百的甲方要求
Dc-7 target
Career experience feedback to novice programmers
力扣62 不同路径(从矩阵左上到右下的所有路径数量) (动态规划)
FlexRay通信协议概述
LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标