Mahesh Talreja
Mahesh Talreja

Reputation: 39

How to implement an async ignite cache store?

I am trying to implement 3rd Party Persistence using Ignite.Net. I have implemented a CacheStore , wherein I am using Dapper as a 3rd Party ORM for database interaction in Load(),Write(),Delete() functions.

Can we make Load(),Write(),Delete() functions async ? Or do we have an async CacheStoreAdapter ?

Upvotes: 0

Views: 379

Answers (1)

Denis Mekhanikov
Denis Mekhanikov

Reputation: 3591

You can use a cache store in write-behind mode. In this mode updates are collected and written to the underlying DB asynchronously with cache operations.

To enable it you should set CacheConfiguration#writeBehindEnabled configuration property to true.

Upvotes: 1

Related Questions