Open pengweichu opened 6 years ago
Please help, thanks in advance.
size_t cursor = 0;
do
{
auto rep = client.scan(cursor, "keys*");
client.sync_commit();
auto res = rep.get().as_array();
cursor = std::stoi(res[0].as_string());
auto return_list = res[1].as_array();
// ...
} while (cursor != 0);
When I send the SCAN, how can I obtain the cursor and returned list?
Thanks