You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by styriver <Sc...@mgic.com> on 2016/12/14 20:08:47 UTC

Difference between cache.clear() versus cache.remove()

Hello what is the difference between cache.clear() versus cache.remove()?
Reviewing developer posts I see that the behavior of .clear() might be
changing in 1.9. We are using the newest 1.8 release right now. 



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Difference-between-cache-clear-versus-cache-remove-tp9546.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Difference between cache.clear() versus cache.remove()

Posted by vkulichenko <va...@gmail.com>.
clear() only removes entries from in-memory cache. remove() is full-pledged
update operation, which does write-through, can be enlisted in transaction,
guarantees consistency, etc.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Difference-between-cache-clear-versus-cache-remove-tp9546p9547.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.