0xsky / xredis

Redis C++ client, support the data slice storage, support redis cluster, thread-safe,multi-platform,connection pool, read/write separation.
GNU General Public License v3.0
337 stars 153 forks source link

Does it support pipeline commands? #30

Open PayneJoe opened 7 years ago

PayneJoe commented 7 years ago

Does it support pipeline commands, or how can we achieve the equivalent result as pipeline commands?

Much appreciated-)

0xsky commented 6 years ago

目前xredis的封装只支持一次执行一个命令并返回一个结果, 还不支持一个多命令的。

0xsky commented 6 years ago

不能支持一次多个命令是有原因的,主要是因为,xredis一开始是为多个redis节点设计的,不同的key很可能在不同的节点上,因此不能一次访问不同的节点。