RedisCachingFactory.CreateRedisCacheDependencyGarbageCollector Method
CreateRedisCacheDependencyGarbageCollector(RedisCachingBackendConfiguration, IServiceProvider?)
Creates an instance of the garbage collector service described in AddRedisCacheDependencyGarbageCollector(IServiceCollection, RedisCachingBackendConfiguration). So start the instance, use StartAsync(CancellationToken).
Declaration
public static IHostedService CreateRedisCacheDependencyGarbageCollector(RedisCachingBackendConfiguration configuration, IServiceProvider? serviceProvider = null)
Parameters
Type | Name | Description |
---|---|---|
RedisCachingBackendConfiguration | configuration | |
IServiceProvider | serviceProvider |
Returns
Type | Description |
---|---|
IHostedService |