https://redis.io/commands/keys
demo 里面给了下面几种用法,难道是只支持这几种吗?
()| 这些都不支持吗?
h?llo matches hello, hallo and hxllo
h*llo matches hllo and heeeello
h[ae]llo matches hello and hallo, but not hillo
h[^e]llo matches hallo, hbllo, ... but not hello
h[a-b]llo matches hallo and hbllo
假设有如下 10 个 key, 怎么只获取 a1,a2,a10,a11?
redis> KEYS *
1) "a1"
2) "a2"
3) "a3"
...
10) "a10"
11) "a11"