PostSharp5.0//API Reference/Post­Sharp.​Patterns.​Caching.​Backends.​Redis Namespace/Redis­Caching­Backend­Configuration Class

RedisCachingBackendConfiguration Class

Configuration for RedisCachingBackend.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Caching.Backends.Redis.RedisCachingBackendConfiguration

Namespace:  PostSharp.Patterns.Caching.Backends.Redis
Assembly:  PostSharp.Patterns.Caching.Backends.Redis (in PostSharp.Patterns.Caching.Backends.Redis.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public class RedisCachingBackendConfiguration

The RedisCachingBackendConfiguration type exposes the following members.

Constructors
  NameDescription
Public methodRedisCachingBackendConfiguration
Initializes a new instance of the RedisCachingBackendConfiguration class
Properties
  NameDescription
Public propertyCreateSerializer
Gets or sets a function that creates the serializer used to serialize objects into byte arrays (and conversely). The default value is null, which means that BinarySerializer will be used.
Public propertyDatabase
Gets the index of the database to use. The default value is -1 (automatic selection).
Public propertyDefaultExpiration
Gets or sets the default expiration time of cached items. All items that don't have an explicit expiration time are automatically expired according to the value of this property, unless they have the NotRemovable priority. The default value is 1 day.
Public propertyIsLocallyCached
Determines whether a MemoryCachingBackend should be added in front of the RedisCachingBackend.
Public propertyKeyPrefix
Gets the prefix for the key of all Redis items created by the RedisCachingBackend. The default value is cache.
Public propertyOwnsConnection
Determines whether the RedisCachingBackend should dispose the Redis connection when the RedisCachingBackend itself is disposed.
Public propertySupportsDependencies
Determines whether the RedisCachingBackend should support dependencies. When this property is used, the DependenciesRedisCachingBackend class is used instead of RedisCachingBackend. When dependencies are enabled, at least one instance of the RedisCacheDependencyGarbageCollector MUST run.
Public propertyTransactionMaxRetries
Gets or sets the number of times Redis transactions are retried when they fail due to a data conflict, before an exception is raised. The default value is 5.
Methods
  NameDescription
Protected methodCheckFrozen
Throws an InvalidOperationException if the object has been frozen.
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also