0

全新的redis。我已经点击了 redis-cli,我希望有一些简单的方法可以查看当前存储在 redis 中的对象......就像"show collections"Mongo. 我如何在 Redis 中执行此操作?

4

1 回答 1

2

尝试键 *

http://redis.io/commands/keys

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> 
于 2013-08-30T23:58:26.737 回答