Create(IConnectionMultiplexer, RedisCachingBackendConfiguration)
Creates a new RedisCacheDependencyGarbageCollector given a Redis connection and a configuration object.
Declaration
public static RedisCacheDependencyGarbageCollector Create(IConnectionMultiplexer connection, RedisCachingBackendConfiguration configuration)
Parameters
Type | Name | Description |
---|---|---|
IConnectionMultiplexer | connection | A Redis connection. |
RedisCachingBackendConfiguration | configuration | A configuration object. |
Returns
Type | Description |
---|---|
RedisCacheDependencyGarbageCollector | A RedisCacheDependencyGarbageCollector using |
Create(CachingBackend)
Creates a new RedisCacheDependencyGarbageCollector that uses an existing DependenciesRedisCachingBackend object.
Declaration
public static RedisCacheDependencyGarbageCollector Create(CachingBackend backend)
Parameters
Type | Name | Description |
---|---|---|
CachingBackend | backend | An existing Redis CachingBackend, as returned by Create(IConnectionMultiplexer, RedisCachingBackendConfiguration). |
Returns
Type | Description |
---|---|
RedisCacheDependencyGarbageCollector | A RedisCacheDependencyGarbageCollector using |