SqlServerCacheOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents configuration options for SqlServerCache.
public ref class SqlServerCacheOptions : Microsoft::Extensions::Options::IOptions<Microsoft::Extensions::Caching::SqlServer::SqlServerCacheOptions ^>
public class SqlServerCacheOptions : Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Caching.SqlServer.SqlServerCacheOptions>
type SqlServerCacheOptions = class
interface IOptions<SqlServerCacheOptions>
Public Class SqlServerCacheOptions
Implements IOptions(Of SqlServerCacheOptions)
- Inheritance
-
SqlServerCacheOptions
- Implements
Constructors
| Name | Description |
|---|---|
| SqlServerCacheOptions() | |
Properties
| Name | Description |
|---|---|
| ConnectionString |
Gets or sets the connection string to the database. |
| DefaultSlidingExpiration |
Gets or sets the default sliding expiration set for a cache entry if neither Absolute or SlidingExpiration has been set explicitly. |
| ExpiredItemsDeletionInterval |
Gets or sets the periodic interval to scan and delete expired items in the cache. Default is 30 minutes. |
| SchemaName |
Gets or sets the schema name of the table. |
| SystemClock |
Gets or sets an abstraction to represent the clock of a machine in order to enable unit testing. |
| TableName |
Gets or sets the name of the table where the cache items are stored. |
Explicit Interface Implementations
| Name | Description |
|---|---|
| IOptions<SqlServerCacheOptions>.Value |
Gets the default configured |