Search code examples
cachingignite

How to invalidate object in Apache Ignite cache


I would like to try implementing read-through = true and write-through = false cache. My application will read objects from cache and perform creates and updates directly to 3rd-party database (oracle).

How to tell Apache Ignite that I had updated object in Oracle?


Solution

  • You can remove an entry from the cache, using IgniteCache#remove, for example. It will be reloaded from the DB during next access.