您可以查询哈希或管道中的任何键,即在对Redis实例的一个请求中。实际的实现取决于您的客户端,但是使用redis-py时,它看起来像这样:
pipe = conn.pipeline()pipe.hgetall('foo')pipe.hgetall('bar')pipe.hgetall('zar')hash1, hash2, hash3 = pipe.execute()客户端将使用3个命令发出一个请求。这与一次将多个值添加到集合中的技术相同。
在http://redis.io/topics/pipelining了解更多



