It's the same cache you are using for both data types so 10 is the correct return value, otherwise you need to create two different caches

Mikael


Den 2018-09-27 kl. 09:05, skrev kcheng.mvp:
here is my code

     public IgniteCache<ArticleAffKey, Comment> comment() {
         return igniteSpringBean.getOrCreateCache(IgDef.DOCS);
     }

     public IgniteCache<CommentAffKey, Reply> reply() {
         return igniteSpringBean.getOrCreateCache(IgDef.DOCS);
     }


I put 10 records to  *IgniteCache<ArticleAffKey, Comment> *

but when I call  IgniteCache<CommentAffKey, Reply>.size() it returns 10,
even I did not put any *Reply* to cache.

I suppose it should return 0, as I did not put any *Reply* to cache.

is this correct?



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Reply via email to