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


边栏推荐
- Haqi projection Black Horse posture, avec seulement six mois de forte pénétration du marché des projecteurs de 1000 yuans!
- A very good JVM interview question article (74 questions and answers)
- C语言整理(待更新)
- DC-7靶机
- 3531. 哈夫曼树
- Handling hardfault in RT thread
- ETCD数据库源码分析——从raftNode的start函数说起
- c面试 加密程序:由键盘输入明文,通过加密程序转换成密文并输出到屏幕上。
- 计算模型 FPS
- CloudCompare-点对选取
猜你喜欢

Implementation of VGA protocol based on FPGA

ICML 2022 | explore the best architecture and training method of language model

How to use wechat cloud hosting or cloud functions for cloud development of unapp development applet

字符串常量与字符串对象分配内存时的区别

哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!

Redis(二)—Redis通用命令

JVM监控及诊断工具-命令行篇

matlab / ENVI 主成分分析实现及结果分析

Jstack of JVM command: print thread snapshots in JVM

Ideas of high concurrency and high traffic seckill scheme
随机推荐
Party A's requirements for those who have lost 800 yuan
What are the classic database questions in the interview?
缓存在高并发场景下的常见问题
matlab / ENVI 主成分分析实现及结果分析
一段程序让你明白什么静态内部类,局部内部类,匿名内部类
POI导出Excel:设置字体、颜色、行高自适应、列宽自适应、锁住单元格、合并单元格...
「解析」FocalLoss 解决数据不平衡问题
Redis(一)——初识Redis
改变ui组件原有样式
直击2022ECDC萤石云开发者大会:携手千百行业加速智能升级
软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
Vscode for code completion
Markdown displays pictures side by side
计算模型 FPS
Niuke Xiaobai monthly race 52 E. sum logarithms in groups (two points & inclusion and exclusion)
laravel 使用腾讯云 COS5全教程
CloudCompare-点对选取
哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!
dolphinscheduler3.x本地启动
Redisl garbled code and expiration time configuration