当前位置:网站首页>Redis notes (II) operating commands for keys in redis

Redis notes (II) operating commands for keys in redis

2022-06-29 04:47:00 - ich lebe .

Yes key The operation of

keys *: View all of the current library  key

exists key: Judge a certain  key  Whether there is 

type key: View your  key  What type is it 

del key : Delete specified  key  data 

unlink key: according to  value  Select non blocking delete , Only will  keys  from  keyspace  Delete from metadata , The real deletion will be done asynchronously later 

expire key 10 : For a given  key  Set expiration time 

ttl key: See how many seconds are left to expire ,-1 Never expire ,-2 Indicates that it has expired 

select: Command switch database 

dbsize: Check the... Of the current database  key  The number of 

flushdb: Empty the current library 

flushall: Kill all the warehouses 
原网站

版权声明
本文为[- ich lebe .]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202161030416995.html