They’re different _types_ but you’ve given them both the same _name_.
Try something like:
public *IgniteCache<ArticleAffKey, Comment>* comment() {
return igniteSpringBean.getOrCreateCache(“COMMENTS_CACHE");
}
public *IgniteCache<CommentAffKey, Reply> *reply() {
return igniteSpringBean.getOrCreateCache(“REPLY_CACHE");
}
Regards,
Stephen
> On 27 Sep 2018, at 09:33, kcheng.mvp <[email protected]> wrote:
>
> public *IgniteCache<ArticleAffKey, Comment>* comment() {
> return igniteSpringBean.getOrCreateCache(IgDef.DOCS);
> }
>
> public *IgniteCache<CommentAffKey, Reply> *reply() {
> return igniteSpringBean.getOrCreateCache(IgDef.DOCS);
> }
>
>
> you can find the caches are totally different(key type and value type)
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/