Custom Implementation of REN In-Memory Cache Service
While REN’s standard in-memory cache service is ready-to-use out of the box, you are not limited to the defaults. REN is designed for extensibility and flexibility: you can easily extend or override the default in-memory cache service to match your own project’s requirements.
For example, you might want to:
Add extra logging, monitoring, or custom eviction strategies,
Enrich your cache operations with additional business logic,
Or adapt caching to specific use cases (such as multi-tenant scenarios).
To do so, you can simply inherit from the provided RENInMemoryCacheService
or implement the IRENCacheService
interface with your own logic.
Just register your custom implementation during service configuration—REN will seamlessly use your extended or overridden service wherever caching is needed.
Last updated