redis开发如果不知道当前redis存有哪些key是很头疼的。
-
h?llo
matcheshello
,hallo
andhxllo
-
h*llo
matcheshllo
andheeeello
-
h[ae]llo
matcheshello
andhallo,
but nothillo
OKredis> KEYS *o*
1) "two" 2) "four" 3) "one"redis> KEYS t??
1) "two"redis> KEYS *
1) "two" 2) "three" 3) "four" 4) "one"