Class NCacheConfiguration
This class is used to configure NCache for caching Entity Framework query result sets.
Inheritance
Assembly: Alachisoft.NCache.EntityFrameworkCore.dll
Syntax
public class NCacheConfiguration : object
Properties
Name | Description |
---|---|
BulkInsertChunkSize | Specifies the chunk size for bulk item insertion. The default chunk size is 1000. |
CacheId | Specifies the cache name in which your result sets will be stored. |
DatabaseType | This option specifies which database dependency should be created. |
InitParams | Used to initialize NCache and override the default NCache parameters. |
IsConfigured | This flag specifies whether provider has been configured or not. |
IsErrorEnabled | This flag specifies whether the exception will be thrown or not. True value corresponds to throw the exception and False corresponds to otherwise. |
Methods
Name | Description |
---|---|
Configure(String, DependencyType, CacheConnectionOptions, Boolean, Int32) | Configures NCache for caching Entity Framework query result sets. |
Configure(String, DependencyType, Boolean, Int32) | Configures NCache for caching Entity Framework query result sets. |
ConfigureLogger(ILoggerFactory, String, String, Microsoft.Extensions.Logging.LogLevel) | Configures logging for Entity Framework Core provider. By default, the logs are created in NCache's log directory unless specified. |
IsLoggerEnabled(Microsoft.Extensions.Logging.LogLevel) | Determine whether any of the configured loggers are currently recording log messages at the specified log levels or not. |