Name | Description | |
---|---|---|
SmartCache Constructor | Default Constructor |
The following tables list the members exposed by SmartCache.
Name | Description | |
---|---|---|
SmartCache Constructor | Default Constructor |
Name | Description | |
---|---|---|
Config | The storage configuration for the caching | |
InfiniteAbsoluteExpiration | Gets a value that indicates that a cache entry has no absolute expiration. | |
IsBusy | Returns true when scavenging or async save or delete is in process for the Secondary Provider | |
NoSlidingExpiration | Indicates that a cache entry has no sliding expiration time. | |
Primary | The primary cache for storage, normally a memory cache | |
Secondary | The secondary backing cache | |
ThrowExceptions | Throw exceptions when there is a problem loading or saving from the cache. The default is true. Exceptions may be logged. |
Name | Description | |
---|---|---|
Add | Overloaded. Inserts a cache entry into the cache without overwriting any existing cache entry. The absolute expiration will be the same for both the primary and secondary cache providers. | |
AddOrGetExisting | Overloaded. Inserts a cache entry into the cache, by using a key, an object for the cache entry, an absolute expiration value, and an optional region to add the cache into. The absolute expiration will be the same for both the primary and secondary cache providers. | |
BuildCacheKey | Overloaded. Build a cache key based on the passed parameters | |
BuildCacheKeyWithReflection | Overloaded. Builds the cache key with reflection so it is unique for the caller | |
ClearAll | Clear everything in the primary and secondary cache | |
ClearByRegex | Clear an item if the cache key matches a regular expression | |
ClearByWildCard | Clear an item if the cache key matches a wildcard pattern for the specified region | |
ClearLog | Overloaded. Clear the file error log | |
ClearRegion | Clear everything for the specified region | |
Contains | Returns true if the key exists in either the primary or secondary cache | |
DisableLogging | Disable all error logging | |
Dispose | Dispose of both primary and secondary cache providers | |
EnableLogging | Overloaded. Log errors to a file | |
Flush | Wait until queued items are written from the secondary cache | |
Get | Overloaded. Gets the specified item in the cache or insert the item using the result of the service function. The default expiration for the primary and secondary cache providers are used. | |
GetCacheItem<T> | Get an item from the cache | |
GetEndOfDay | Gets the end of day. | |
GetLastDayOfMonth | Gets the last day of the month. | |
GetLastDayOfWeek | Gets the last day of the week. | |
GetPrimaryCacheKeys | Get the keys for the primary cache for a region | |
GetPrimaryCount | Get the number of items in the primary cache for a region | |
GetPrimaryRegions | Get a list of regions in the primary cache | |
GetSecondaryCacheKeys | Get the keys for the secondary cache for a region | |
GetSecondaryCount | Get the number of items in the secondary cache for a region | |
GetSecondaryRegions | Get a list of regions in the secondary cache | |
GetSecondaryTotalCount | Gets the total count of all items in the secondary cache | |
GetTotalPrimaryCount | Gets the total items in the primary cache | |
Remove<T> | Remove an item from the cache | |
Set | Overloaded. Set a cache value. The default expiration for the primary and secondary cache providers are used. |