PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace / Redis­Cache­Dependency­Garbage­Collector Class / Redis­Cache­Dependency­Garbage­Collector Methods / Redis­Cache­Dependency­Garbage­Collector.​Create Method / Redis­Cache­Dependency­Garbage­Collector.​Create Method (IConnection­Multiplexer, Redis­Caching­Backend­Configuration)

RedisCacheDependencyGarbageCollector.Create Method (IConnectionMultiplexer, RedisCachingBackendConfiguration)

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

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
public static RedisCacheDependencyGarbageCollector Create(
	IConnectionMultiplexer connection,
	RedisCachingBackendConfiguration configuration
)

Parameters

connection
Type: IConnectionMultiplexer
A Redis connection.
configuration
Type: PostSharp.Patterns.Caching.Backends.Redis.RedisCachingBackendConfiguration
A configuration object.

Return Value

Type: RedisCacheDependencyGarbageCollector
A RedisCacheDependencyGarbageCollector using connection and configuration.
See Also