Hi Vinay,

See my answers below.


vinshar wrote
> 1) Cache configuration is defined on a server node and cache was created
> as part of this server node start operation. Cache is read through and
> write through. I Define cache loader factory and Cache writer Factory in
> this configuration. I guess my loader factory implementation class should
> be on all server nodes in this case? is this right? 
> 2) Create a near cache for above mentioned cache on a client node. Now do
> i need loader and writer factory implementation classes on client node as
> well? i think not.

The configuration is broadcasted to all nodes. This is required, for
example, for transactional caches, because they update the store from the
client node, not from the server. With atomic cache this can be
workarounded, but by default you will need to deploy classes on all nodes.


vinshar wrote
> 3) Make a get operation which is a miss on near cache. I think i should
> get value from Server node if it exists there in this case.
> 4) Make another get which is a miss on near cache as well as a miss on
> cache on server node. I think in this case Server node will use Loader
> factory to load object in cache and send it to client node. is this right?

This is correct.


vinshar wrote
> 5) What happens if i call getAndPut on near cache on client node?

It will return you the current value, update the entry with the new one and
call CacheStore.write(). It will be cached in the local near cache as well.

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/SoreSessionListener-cacheLoaderFactory-cacheWriterFactory-implementation-examples-tp2462p2503.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to