Overview
RCommon provides a provider-agnostic caching abstraction built around a single interface: ICacheService. The same interface is implemented by in-process memory caching, distributed memory caching, and Redis. Application code that depends only on ICacheService can switch caching backends without any handler or service changes.
Memory Cache
RCommon.MemoryCache provides two in-process caching implementations behind the ICacheService abstraction:
Redis Cache
RCommon.RedisCache implements ICacheService using StackExchange.Redis through the Microsoft.Extensions.Caching.StackExchangeRedis provider. It is the recommended caching backend for applications deployed across multiple instances or hosts.