当前位置:网站首页>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 .
边栏推荐
- 高并发大流量秒杀方案思路
- win系统下安装redis以及windows扩展方法
- Solve pod install error: FFI is an incompatible architecture
- 【GNN】图解GNN: A gentle introduction(含视频)
- Audio distortion analysis of DSP and DAC based on adau1452
- c语言面试写一个函数在字符串N中查找第一次出现子串M的位置。
- Vscode for code completion
- Redis(二)—Redis通用命令
- 计算模型 FPS
- Shared memory for interprocess communication
猜你喜欢
字符串常量与字符串对象分配内存时的区别
How to keep accounts of expenses in life
Software testing knowledge reserve: how much do you know about the basic knowledge of "login security"?
软件测试知识储备:关于「登录安全」的基础知识,你了解多少?
【GNN】图解GNN: A gentle introduction(含视频)
Ctfshow-- common posture
[FPGA tutorial case 13] design and implementation of CIC filter based on vivado core
2022Android面试必备知识点,一文全面总结
安装VMmare时候提示hyper-v / device defender 侧通道安全性
Check point: the core element for enterprises to deploy zero trust network (ztna)
随机推荐
JVM 全面深入
[Shell]常用shell命令及测试判断语句总结
Handling hardfault in RT thread
Subghz, lorawan, Nb IOT, Internet of things
3428. Put apples
c面试 加密程序:由键盘输入明文,通过加密程序转换成密文并输出到屏幕上。
骑士战胜魔王(背包&dp)
matlab / ENVI 主成分分析实现及结果分析
go-microservice-simple(2) go-Probuffer
测试开发基础,教你做一个完整功能的Web平台之环境准备
ETCD数据库源码分析——从raftNode的start函数说起
缓存在高并发场景下的常见问题
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
Qt多线程的多种方法之一 QThread
693. 行程排序
Haqi projection Black Horse posture, avec seulement six mois de forte pénétration du marché des projecteurs de 1000 yuans!
可极大提升编程思想与能力的书有哪些?
UIC(组态UI工程)公版文件库新增7款行业素材
C语言面试 写一个函数查找两个字符串中的第一个公共字符串
C语言整理(待更新)