Usage
dotnet add package Eiffel.Caching.Abstractionspublic class BookingService
{
private readonly ICacheService _cacheService;
public BookingService(ICacheService cacheService)
{
_cacheService = cacheService;
}
.. // Your implementation details
}public class BookingService
{
const int BookingCacheIndex = 10;
private readonly ICacheService _cacheService;
public BookingService(ICacheServiceFactory cacheServiceFactory)
{
_cacheService = cacheServiceFactory.Resolve(BookingCacheIndex);
}
.. // Your implementation details
}Last updated