Method Configure
Configure(String, DependencyType, Boolean, Int32)
Configures NCache for caching Entity Framework query result sets.
Declaration
public static void Configure(string cacheId, DependencyType databaseType, bool errorEnabled = false, int bulkInsertChunkSize = 1000)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | Cache Id that will be used to store result sets. |
Alachisoft.NCache.EntityFrameworkCore.DependencyType | databaseType | Database type that will be used when creating database dependencies. |
System.Boolean | errorEnabled | Specifies if exceptions should be thrown for FromCache and LoadIntoCache queries. |
System.Int32 | bulkInsertChunkSize | Specifies the chunk size for bulk insertion. |
Configure(String, DependencyType, CacheConnectionOptions, Boolean, Int32)
Configures NCache for caching Entity Framework query result sets.
Declaration
public static void Configure(string cacheId, DependencyType databaseType, CacheConnectionOptions initParams, bool errorEnabled = false, int bulkInsertChunkSize = 1000)
Parameters
Type | Name | Description |
---|---|---|
System.String | cacheId | Cache Id that will be used to store result sets. |
Alachisoft.NCache.EntityFrameworkCore.DependencyType | databaseType | Database type that will be used when creating database dependencies. |
CacheConnectionOptions | initParams | Additional parameters used to initialize NCache. |
System.Boolean | errorEnabled | Specifies if exceptions should be thrown for FromCache and LoadIntoCache queries. |
System.Int32 | bulkInsertChunkSize | Specifies the chunk size for bulk insertion. |