Reputation: 11
How can I use read/write-through with C# and Node.js clients? Appreciate it if you could provide code samples.
https://ignite.apache.org/docs/latest/persistence/external-storage#read-through-and-write-through
Upvotes: 1
Views: 158
Reputation: 8986
C# (Ignite.NET): check the cache store example and the cache store implementation.
To use read/write through:
Implement ICacheStore<K, V>
Update configuration:
new CacheConfiguration
{
Name = CacheName,
ReadThrough = true,
WriteThrough = true,
CacheStoreFactory = new MyStoreFactory()
}
For thin clients (Node.js, C#, etc) there is nothing to do on the client side. Cache store should be implemented and configured on the server side - in Java or C#.
Upvotes: 1