Reputation: 115
I want to perform read and write through using apache ignite. I know that we have to use "cacheStoreAdapter" interface for it. In these interface we have 3 methods, "Load, write and delete". In write/load methods we have to explicitly write persistent db queries. Is there a way where on cache.put(), it writes to persistent db automatically????
Upvotes: 0
Views: 1031
Reputation: 334
There are two implementations to automatically persist data in db - CacheJdbcPojoStore and CacheJdbcBlobStore. https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/cache/store/jdbc/CacheJdbcPojoStore.html https://github.com/apache/ignite/blob/master/modules/core/src/main/java/org/apache/ignite/cache/store/jdbc/CacheJdbcBlobStore.java
Upvotes: 0