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 (Caching­Backend)

RedisCacheDependencyGarbageCollector.Create Method (CachingBackend)

Creates a new RedisCacheDependencyGarbageCollector that uses an existing DependenciesRedisCachingBackend 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(
	CachingBackend backend
)

Parameters

backend
Type: PostSharp.Patterns.Caching.Implementation.CachingBackend
An existing Redis CachingBackend, as returned by Create(IConnectionMultiplexer, RedisCachingBackendConfiguration).

Return Value

Type: RedisCacheDependencyGarbageCollector
A RedisCacheDependencyGarbageCollector using backend.
See Also