Closed conde2 closed 1 year ago
AsyncRedis::hmget
is a template method, you should specify a template parameter, i.e. the type of hmget's result:
auto vals = r.hmget<vector<OptionalString>>("key", {"k", "k1"}).get();
for (auto &val : vals) {
if (val)
cout << *val << endl;
else
cout << "not exist" << endl;
}
Regards
Thank you, it was not stated on the documentation so I thought it was the same as the sync version.
Describe the bug I always receive compiling errors while trying to use the hmget command with asyncRedis
To Reproduce
Expected behavior Be able to use hmget command with asyncRedis
Environment: