Read/write-through in C# and Node.js

Viewed 90
1 Answers

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#.

Related