Hi,
currently the Size() method is defined as
int32_t Size()
{
return Size(ignite::cache::CachePeekMode::ALL);
}
It is collecting all instances of the key across all nodes.
therefore if you have a cache defined w/1 backup and you put 1 key into
that cache then startup 2 nodes.
Cache.size() will return 2. (1 for the primary + 1 for backup)
If you would like it to return 1(count only primary) the call would be:
Size(ignite::cache::CachePeekMode::PRIMARY);
Cache Peek Mode definition:
https://www.gridgain.com/sdk/ce/8.7.14/cppdoc/structignite_1_1cache_1_1CachePeekMode.html
Thanks, Alex
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/