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

why no "keys" cmd? #39

Open kaocs opened 6 years ago

kaocs commented 6 years ago

why no "keys" cmd?

0xsky commented 6 years ago

keys命令需要列出系统所有的key,在xredis里,由于分片存储的原因,认为数据存储在多个节点上,实现keys命令需要在各个分片节点上执行keys命令并返回结果, 我认为一般只是在开发时有可能用到keys命令,程序运行时一般不需要用到keys命令,所以没有实现。