You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In fact, this feature is on the way. However, there's some problem with the async interface, and I'm considering how to do error handling elegantly. The interface is more or less like the following:
auto r = RedisCluster("redis://127.0.0.1:7000");
r.for_each([](Redis &r) {
// *r* is a Redis instance connecting a node, and you can do stuff with it for each node.
});
RedisCluster::for_each has been merged into the master branch. Please take a try. If you have any problem, feel free to let me know. for_each for AsyncRedisCluster is still on the way.
I would like to be able to SCAN keys in a cluster as in the below example code.
The above uses the
Redis::Redis(const GuardedConnectionSPtr &)
which is private, so obviously not the cleanest approach.A better way would be to add the following
RedisCluster
methods, please.Thank you!
The text was updated successfully, but these errors were encountered: