Ejemplo n.º 1
0
        public InMemoryCachingProvider(ICacheInvalidationService invalidationService)
        {
            _invalidationService = invalidationService;
            _invalidationService.AddInvalidationHandler(invalidationEvent => InvalidateAsync(invalidationEvent.Key));

            _ = Task.Run(async() => await EnforceExpirationsAsync().ConfigureAwait(false));
        }
Ejemplo n.º 2
0
 public CachingService(ICacheInvalidationService invalidationService)
 {
     _invalidationService = invalidationService;
 }