SqlServerCacheOptions Class¶
Configuration options for Microsoft.Extensions.Caching.SqlServer.SqlServerCache
.
- Namespace
Microsoft.Extensions.Caching.SqlServer
- Assemblies
- Microsoft.Extensions.Caching.SqlServer
Syntax¶
public class SqlServerCacheOptions : IOptions<SqlServerCacheOptions>
-
class
Microsoft.Extensions.Caching.SqlServer.
SqlServerCacheOptions
Properties¶
-
Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions.
ConnectionString
¶ The connection string to the database.
Return type: System.String public string ConnectionString { get; set; }
-
Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions.
ExpiredItemsDeletionInterval
¶ The periodic interval to scan and delete expired items in the cache. Default is 30 minutes.
Return type: System.Nullable<System.TimeSpan> public TimeSpan? ExpiredItemsDeletionInterval { get; set; }
-
Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions.
Value
¶ Return type: Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions SqlServerCacheOptions IOptions<SqlServerCacheOptions>.Value { get; }
-
Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions.
SchemaName
¶ The schema name of the table.
Return type: System.String public string SchemaName { get; set; }
-
Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions.
SystemClock
¶ An abstraction to represent the clock of a machine in order to enable unit testing.
Return type: Microsoft.Extensions.Internal.ISystemClock public ISystemClock SystemClock { get; set; }
-
Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions.
TableName
¶ Name of the table where the cache items are stored.
Return type: System.String public string TableName { get; set; }
-