Appendix C. Using Third-party or a Custom Caching with Sentinet Nodes
By default, Sentinet Nodes use built-in, in-memory caching which is configured
with Nodes as a default Cache Provider. The configuration can be found in Node’s
web.config file in a
<caching type="Nevatech.Vsb.Repository.Caching.MemoryCacheProvider, Nevatech.Vsb.Repository,
Version=6.0.0.0, Culture=neutral, PublicKeyToken=f35d905149dcb6c0" />
The default Cache Provider can be replaced for a Node in its web.config file with any third-party or a custom Cache Provider. Sentinet Cache Provider is a .NET class which implements ICacheProvider interface defined in the Nevatech.Vsb.Repository.dll assembly. Sentinet is shipped with Nevatech.Vsb.Samples.Caching sample .NET C# project, which demonstrates how to replace default Sentinet Cache Provider with the Redis distributed cache. The sample is provided with precompiled assemblies, source codes and the Readme.txt file. Replacing default Cache Provider affects the following components of a Sentinet Node:
- Access Rules’ Transaction Count component.
- Cache Request and Cache Response pipeline components.
- Generic Cache Properties pipeline component.