CacheController Class |
Namespace: SD.LLBLGen.Pro.ORMSupportClasses
The CacheController type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | CacheResultset(CacheKey, String, TimeSpan, CachedResultset) |
Caches the resultset specified under the key specified in the cache related to the connection string for the duration specified.
|
![]() ![]() | CacheResultset(CacheKey, String, TimeSpan, CachedResultset, Boolean) |
Caches the resultset specified under the key specified in the cache related to the connection string for the duration specified.
|
![]() ![]() | CacheResultset(CacheKey, String, TimeSpan, CachedResultset, Boolean, String) |
Caches the resultset specified under the key specified in the cache related to the connection string for the duration specified.
|
![]() ![]() | GetCachedResultset(CacheKey) |
Gets the cached resultset for the key - empty-string combination.
|
![]() ![]() | GetCachedResultset(CacheKey, String) |
Gets the cached resultset for the key - connectionstring combination. If no cache is registered for the connection string, the
empty string is retried
|
![]() ![]() | GetCachedResultsets(String) |
Gets the cached resultsets for the tag - emptyh string combination.
|
![]() ![]() | GetCachedResultsets(String, String) |
Gets the cached resultsets for the tag - connectionstring combination. If no cache is registered for the connection string, the
empty string is retried
|
![]() ![]() | GetRegisteredCache |
Gets the registered cache.
|
![]() ![]() | PurgeResultsets(String) |
Purges the resultsets cached with the tag specified from the cache registered under the empty string.
|
![]() ![]() | PurgeResultsets(String, String) |
Purges the resultsets cached with the tag specified from the cache registered under the connectionstring specified.
|
![]() ![]() | RegisterCache |
Registers the cache specified under the connection string specified.
|
Name | Description | |
---|---|---|
![]() ![]() | CachingEnabled |
If set to true (default) the caching system works as expected. If set to false, no resultsets are cached. Set to false when
caching is undesired (e.g. during debugging). Global setting.
|
![]() ![]() | ThrowExceptionWhenCacheNotAvailable |
If set to true the controller will throw an InvalidOperationException
when a caching attempt is made for a cache which isn't registered. If false (default), the caching attempt for a cache which
doesn't exist will result in a no-op. Set to true during testing/debug to see whether you're trying to cache data in non-existing
caches.
|