1. Full traversal keys
keys pattern
We have already introduced it in the previous article, you can use it directly
keys *
There are 5 types of redis values, and different types have different commands to get them:
Character directly get key
Pop an element from the left end of the queue LPOP key
Hash HGET key field
Collection SMEMBERS key returns all elements in the collection
Sorted set ZRANGE key start stop
…
The post redis read all keys first appeared on Lenix Blog .
This article is reprinted from https://blog.p2hp.com/archives/9137
This site is for inclusion only, and the copyright belongs to the original author.