共用方式為


StackExchangeRedisCacheServiceCollectionExtensions 類別

定義

IServiceCollection 中設定 Redis 分散式快取相關服務的擴充方法。

public ref class StackExchangeRedisCacheServiceCollectionExtensions abstract sealed
public static class StackExchangeRedisCacheServiceCollectionExtensions
type StackExchangeRedisCacheServiceCollectionExtensions = class
Public Module StackExchangeRedisCacheServiceCollectionExtensions
繼承
StackExchangeRedisCacheServiceCollectionExtensions

方法

AddStackExchangeRedisCache(IServiceCollection, Action<RedisCacheOptions>)

將 Redis 分散式快取服務新增至指定的 IServiceCollection

適用於