当前位置:网站首页>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
边栏推荐
- NLP第四范式:Prompt概述【Pre-train,Prompt(提示),Predict】【刘鹏飞】
- Kubernetes stateless application expansion and contraction capacity
- Internship: unfamiliar annotations involved in the project code and their functions
- Flowable source code comments (36) process instance migration status job processor, BPMN history cleanup job processor, external worker task completion job processor
- Redis-字符串类型
- How does the crystal oscillator vibrate?
- 阿裏測開面試題
- 1. Introduction to basic functions of power query
- NiO related knowledge (II)
- 竞赛题 2022-6-26
猜你喜欢
国家级非遗传承人高清旺《四大美人》皮影数字藏品惊艳亮相!
Leetcode sum of two numbers
02.Go语言开发环境配置
500 lines of code to understand the principle of mecached cache client driver
Redis-字符串类型
3D model format summary
Docker compose configures MySQL and realizes remote connection
Basic operations of database and table ----- delete data table
[机缘参悟-39]:鬼谷子-第五飞箝篇 - 警示之二:赞美的六种类型,谨防享受赞美快感如同鱼儿享受诱饵。
Huawei converged VLAN principle and configuration
随机推荐
Yii console method call, Yii console scheduled task
Selenium element positioning (2)
【SSRF-01】服务器端请求伪造漏洞原理及利用实例
How to see the K-line chart of gold price trend?
selenium 元素定位(2)
[network attack and defense training exercises]
Mathematical modeling learning from scratch (2): Tools
Reasonable and sensible
[the most complete in the whole network] |mysql explain full interpretation
Docker compose配置MySQL并实现远程连接
c#网页打开winform exe
A picture to understand! Why did the school teach you coding but still not
[flask] static file and template rendering
UE4 unreal engine, editor basic application, usage skills (IV)
02.Go语言开发环境配置
插卡4G工业路由器充电桩智能柜专网视频监控4G转以太网转WiFi有线网速测试 软硬件定制
NLP fourth paradigm: overview of prompt [pre train, prompt, predict] [Liu Pengfei]
Tensorflow customize the whole training process
Cookie concept, basic use, principle, details and Chinese transmission
【Flask】获取请求信息、重定向、错误处理