RedisCacheServiceCollectionExtensions 类

定义

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

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

方法

AddDistributedRedisCache(IServiceCollection, Action<RedisCacheOptions>)

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

适用于