PostSharp.ILAPI ReferencePost­Sharp.​Patterns.​Caching.​Backends.​RedisRedis­Cache­Dependency­Garbage­CollectorCreate
Open sandboxFocus

RedisCacheDependencyGarbageCollector.Create Method

Create(IConnectionMultiplexer, RedisCachingBackendConfiguration)

Creates a new RedisCacheDependencyGarbageCollector given a Redis connection and a configuration object.

Declaration
public static RedisCacheDependencyGarbageCollector Create([Required] IConnectionMultiplexer connection, [Required] RedisCachingBackendConfiguration configuration)
Parameters
Type Name Description
StackExchange.Redis.IConnectionMultiplexer connection

A Redis connection.

RedisCachingBackendConfiguration configuration

A configuration object.

Returns
Type Description
RedisCacheDependencyGarbageCollector

A RedisCacheDependencyGarbageCollector using connection and configuration.

Create(CachingBackend)

Creates a new RedisCacheDependencyGarbageCollector that uses an existing PostSharp.Patterns.Caching.Backends.Redis.DependenciesRedisCachingBackend object.

Declaration
public static RedisCacheDependencyGarbageCollector Create([Required] 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 backend.