Reputation: 258
There is a function specified to get the values based on the keys.
std::map<K, V> GetAll(const std::set<K>& keys)
How can I retrieve all the keys that are present in all the nodes for a cache?
Upvotes: 2
Views: 734
Reputation: 463
You can use ScanQuery for this:
ScanQuery
ScanQuery qry; QueryCursor<int, QueryPerson> cursor = cache.Query(qry); while (cursor.HasNext()) { CacheEntry<int, QueryPerson> entry = cursor.GetNext(); std::cout << entry.GetKey() << std::endl; }
Upvotes: 3