Class DaprCacheServicesExtension
Extension methods to register the ICache implementation of the Arc4u.Caching.Dapr package.
public static class DaprCacheServicesExtension
- Inheritance
-
DaprCacheServicesExtension
- Inherited Members
Methods
AddDaprCacheKind(IServiceCollection)
Registers DaprCache with the kind Dapr as keyed ICache service, so that the caches declared with this Kind in the caching configuration section can be resolved by the ICacheContext.
Calling it more than once has no effect.
public static IServiceCollection AddDaprCacheKind(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection.
Returns
- IServiceCollection
The same IServiceCollection, for chaining.