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. |
cacheId | Cache Id that will be used to store result sets. |
Alachisoft. |
databaseType | Database type that will be used when creating database dependencies. |
System. |
errorEnabled | Specifies if exceptions should be thrown for FromCache and LoadIntoCache queries. |
System. |
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. |
cacheId | Cache Id that will be used to store result sets. |
Alachisoft. |
databaseType | Database type that will be used when creating database dependencies. |
Cache |
initParams | Additional parameters used to initialize NCache. |
System. |
errorEnabled | Specifies if exceptions should be thrown for FromCache and LoadIntoCache queries. |
System. |
bulkInsertChunkSize | Specifies the chunk size for bulk insertion. |