共用方式為


RedisCacheOptions Class

Definition

Configuration options for RedisCache.

public ref class RedisCacheOptions : Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::StackExchangeRedis::RedisCacheOptions ^>
public class RedisCacheOptions : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.StackExchangeRedis.RedisCacheOptions>
type RedisCacheOptions = class
    interface IOptions<RedisCacheOptions>
Public Class RedisCacheOptions
Implements IOptions(Of RedisCacheOptions)
Inheritance
RedisCacheOptions
Implements

Constructors

Name Description
RedisCacheOptions()

Properties

Name Description
Configuration

The configuration used to connect to Redis.

ConfigurationOptions

The configuration used to connect to Redis. This is preferred over Configuration.

ConnectionMultiplexerFactory

Gets or sets a delegate to create the ConnectionMultiplexer instance.

InstanceName

The Redis instance name. Allows partitioning a single backend cache for use with multiple apps/services. If set, the cache keys are prefixed with this value.

ProfilingSession

The Redis profiling session

Explicit Interface Implementations

Name Description
IOptions<RedisCacheOptions>.Value

Gets the default configured TOptions instance.

Applies to