当前位置:网站首页>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 .
边栏推荐
- Ant manor safety helmet 7.8 ant manor answer
- Rk3399 platform development series explanation (interruption) 13.10, workqueue work queue
- C语言整理(待更新)
- 基于FPGA的VGA协议实现
- Career experience feedback to novice programmers
- Peripheral driver library development notes 43: GPIO simulation SPI driver
- 改变ui组件原有样式
- Oracle迁移中关于大容量表使用数据泵(expdp、impdp)导出导入容易出现的问题和注意事项
- From "running distractor" to data platform, Master Lu started the road of evolution
- [FPGA tutorial case 14] design and implementation of FIR filter based on vivado core
猜你喜欢
matlab / ENVI 主成分分析实现及结果分析
进程间通信之共享内存
Software testing knowledge reserve: how much do you know about the basic knowledge of "login security"?
博士申请 | 上海交通大学自然科学研究院洪亮教授招收深度学习方向博士生
Deep clustering: joint optimization of depth representation learning and clustering
蚂蚁庄园安全头盔 7.8蚂蚁庄园答案
From "running distractor" to data platform, Master Lu started the road of evolution
Handling hardfault in RT thread
What are the classic database questions in the interview?
外设驱动库开发笔记43:GPIO模拟SPI驱动
随机推荐
Redis(一)——初识Redis
Peripheral driver library development notes 43: GPIO simulation SPI driver
JVM in-depth
Jmeter自带函数不够用?不如自己动手开发一个
K8s running Oracle
Markdown 并排显示图片
FlexRay通信协议概述
PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
缓存在高并发场景下的常见问题
Ctfshow-- common posture
postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
laravel 使用腾讯云 COS5全教程
How to use wechat cloud hosting or cloud functions for cloud development of unapp development applet
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
Sequential storage of stacks
Redis(二)—Redis通用命令
3531. Huffman tree
Experience of Niuke SQL
How to keep accounts of expenses in life
Ha Qu projection dark horse posture, only half a year to break through the 1000 yuan projector market!