全新的redis。我已经点击了redis-cli,我期待一些简单的方法来查看当前存储在redis中的对象...就像"show collections"
中的Mongo
一样。我如何在Redis中执行此操作?
答案 0 :(得分:2)
尝试按键*
redis> MSET one 1 two 2 three 3 four 4
OK
redis> KEYS *o*
1) "one"
2) "two"
3) "four"
redis> KEYS t??
1) "two"
redis> KEYS *
1) "one"
2) "two"
3) "four"
4) "three"
redis>