suhuadong wrote
>  I start distributed cache called "myCache"  by invoke
> ignite.getOrCreateCache(new CacheConfiguration<String,
> String>("myCache")), and restart disrtibuted cache called "myCache",
> with near cache by invoke ignite.getOrCreateNearCache("myCache", nearCfg)
> ,so cause IgniteCheckedException.
>   
> Have I understood correctly?

You can't create near cache after you already acquired IgniteCache instance
without near cache on this node. getOrCreateCache method creates and returns
this instance, even if you don't use it.

You should use one of two methods. Both of them will create distributed
server cache if needed, but getOrCreateNearCache will additionally create
local near cache.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Ignite-near-cache-Problem-tp4657p4682.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to