StackExchangeRedisCacheServiceCollectionExtensions 类

定义

用于在 IServiceCollection 中设置 Redis 分布式缓存相关服务的扩展方法。Extension methods for setting up Redis distributed cache related services in an IServiceCollection.

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

方法

AddStackExchangeRedisCache(IServiceCollection, Action<RedisCacheOptions>)

将 Redis 分布式缓存服务添加到指定的 IServiceCollectionAdds Redis distributed caching services to the specified IServiceCollection.

适用于