当前位置:网站首页>Redis key operation
Redis key operation
2022-07-06 01:40:00 【Freezing point contract】
operation key
keys * : View all... Of the current library key
exists key: Judge a certain key Whether there is
type key: Judge key What type is it
del key: Delete the specified key The data of
unlink key: Asynchronously delete the specified key( Only will keys from keyspace Delete from metadata , The real deletion will be done asynchronously later )
expire key 10: Set up key The expiration date is 10s
ttl key: see key How much more? s Be overdue ,-1 Represents never expires ,-2 Indicates that it has expired
select db: Switch to the specified library
dbsize: View the current library's key Number
flushdb: Empty the current library
flushall: Empty all libraries
边栏推荐
- 02.Go语言开发环境配置
- 干货!通过软硬件协同设计加速稀疏神经网络
- Basic operations of database and table ----- set the fields of the table to be automatically added
- A picture to understand! Why did the school teach you coding but still not
- yii中console方法调用,yii console定时任务
- Une image! Pourquoi l'école t'a - t - elle appris à coder, mais pourquoi pas...
- How to upgrade kubernetes in place
- Huawei converged VLAN principle and configuration
- Unreal browser plug-in
- [Jiudu OJ 09] two points to find student information
猜你喜欢
False breakthroughs in the trend of London Silver
XSS learning XSS lab problem solution
Docker compose配置MySQL并实现远程连接
A picture to understand! Why did the school teach you coding but still not
500 lines of code to understand the principle of mecached cache client driver
Tensorflow customize the whole training process
Basic operations of databases and tables ----- default constraints
Docker compose configures MySQL and realizes remote connection
Basic operations of databases and tables ----- primary key constraints
Unity | two ways to realize facial drive
随机推荐
【全網最全】 |MySQL EXPLAIN 完全解讀
Remember that a version of @nestjs/typeorm^8.1.4 cannot be obtained Env option problem
01.Go语言介绍
[Jiudu OJ 09] two points to find student information
3D视觉——4.手势识别(Gesture Recognition)入门——使用MediaPipe含单帧(Singel Frame)和实时视频(Real-Time Video)
NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]
竞赛题 2022-6-26
Crawler request module
C web page open WinForm exe
Alibaba-Canal使用详解(排坑版)_MySQL与ES数据同步
NLP第四范式:Prompt概述【Pre-train,Prompt(提示),Predict】【刘鹏飞】
A Cooperative Approach to Particle Swarm Optimization
晶振是如何起振的?
Electrical data | IEEE118 (including wind and solar energy)
Yii console method call, Yii console scheduled task
Paddle框架:PaddleNLP概述【飞桨自然语言处理开发库】
1. Introduction to basic functions of power query
Leetcode skimming questions_ Invert vowels in a string
Selenium element positioning (2)
【网络攻防实训习题】