共用方式為


SqlServerCachingServicesExtensions 類別

定義

IServiceCollection 中設定 Microsoft SQL Server 分散式快取服務的擴充方法。

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

方法

AddDistributedSqlServerCache(IServiceCollection, Action<SqlServerCacheOptions>)

將 Microsoft SQL Server 分散式快取服務新增至指定的 IServiceCollection

適用於