如何使Apache Ignite缓存中的对象无效

问题描述 投票:0回答:1

我想尝试实现read-through = true和write-through = false缓存。我的应用程序将从缓存中读取对象,并直接对第三方数据库(oracle)执行创建和更新。

如何告诉Apache Ignite我在Oracle中更新了对象?

caching ignite
1个回答
3
投票

例如,您可以使用IgniteCache#remove从缓存中删除条目。它将在下次访问时从数据库重新加载。

© www.soinside.com 2019 - 2024. All rights reserved.