Jimmy,

Ignite is a distributed system and the approach you're describing doesn't
make much sense for it. If the value is fetched from a remote node, you will
always get a copy. If you get the value locally, you can force Ignite to
return the stored instance by setting
CacheConfiguration.setCopyOnRead(false) property, but this should be used
only in read-only scenario. It's not safe to modify this instance, because
the serialized form will not be updated until you call cache.put(), so the
one that reads it will potentially get the old value. Additionally, it can
be concurrently serialized which can cause data corruption.

I understand that this is a big change, but looks like you will have to
revisit your architecture and make sure that you use Ignite API properly.

Makes sense?

-Val



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Is-there-a-way-to-get-original-object-reference-from-IgniteCache-tp3611p3623.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to