CacheManager Methods |
The CacheManager type exposes the following members.
Name | Description | |
---|---|---|
CacheObject |
Serialize an object and cache it to the operational data cache. Note that the object must be serializable to XML.
See CacheString(String, String, DateTime, String, String, String) for caching string data, or CacheTable(DataTable, String, DateTime, String, String, String) for caching DataTables.
Together the cacheID and ID should form a unique identifier.
Use TryGetObject(String, String, Type, Object, DateTime) to retrieve the cached object from cache.
| |
CacheString |
Cache a string to the operational data cache.
See CacheTable(DataTable, String, DateTime, String, String, String) for caching DataTables, or CacheObject(Object, String, DateTime, String, String, String) for caching other objects.
Together the cacheID and ID should form a unique identifier.
Use TryGetString(String, String, String, DateTime) to retrieve the cached DataTable from cache.
| |
CacheTable |
Cache a DataTable to the operational data cache.
See CacheString(String, String, DateTime, String, String, String) for caching other data, or CacheObject(Object, String, DateTime, String, String, String) for caching other objects.
Together the cacheID and ID should form a unique identifier.
Use TryGetTable(String, String, DataTable, NullableDateTime) to retrieve the cached DataTable from cache.
| |
DeleteExpiredItems |
Delete all expired cache items from the cache.
| |
Equals | (Inherited from Object.) | |
Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
Flush |
Flush the user's cache for the specified item.
| |
FlushByRelID |
Flush the cache by a specified related id, either for a specific user, or for all users with a cache record matching the related id.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SafeSignature |
Converts s signature as provided to public methods in this class, into the signature used in the cache table.
| |
ToString | (Inherited from Object.) | |
TryGetObject |
Attempt to retrieve a cached object item. Use CacheObject(Object, String, DateTime, String, String, String) to cache the object.
See TryGetString(String, String, String, DateTime) for retrieving string data, or TryGetTable(String, String, DataTable, NullableDateTime) for retrieving DataTables.
Together the cacheID and ID should form a unique identifier.
Having uniquely identified the item in this manner, the item's expiry and optional signature match are used to determine whether
or not to accept the item as a cache hit and return it.
| |
TryGetString |
Attempt to retrieve a cached data item. Use CacheString(String, String, DateTime, String, String, String) to cache the data.
See TryGetTable(String, String, DataTable, NullableDateTime) for retrieving DataTables, or TryGetObject(String, String, Type, Object, DateTime) for retrieving other objects.
Together the cacheID and ID should form a unique identifier.
Having uniquely identified the item in this manner, the item's expiry and optional signature match are used to determine whether
or not to accept the item as a cache hit and return it.
| |
TryGetTable(String, String, DataTable, DateTime) |
Attempt to retrieve a cached DataTable item. Use CacheTable(DataTable, String, DateTime, String, String, String) to cache the DataTable.
See TryGetString(String, String, String, DateTime) for retrieving string data, or TryGetObject(String, String, Type, Object, DateTime) for retrieving other objects.
Together the cacheID and ID should form a unique identifier.
Having uniquely identified the item in this manner, the item's expiry and optional signature match
are used to determine whether or not to accept the item as a cache hit and return it.
| |
TryGetTable(String, String, DataTable, NullableDateTime) |
Attempt to retrieve a cached DataTable item. Use CacheTable(DataTable, String, DateTime, String, String, String) to cache the DataTable.
See TryGetString(String, String, String, DateTime) for retrieving string data, or TryGetObject(String, String, Type, Object, DateTime) for retrieving other objects.
Together the cacheID and ID should form a unique identifier.
Having uniquely identified the item in this manner, the item's expiry and optional signature match
are used to determine whether or not to accept the item as a cache hit and return it.
This overload outputs a nullable DateTime.
|
Name | Description | |
---|---|---|
EqualValue |
Determines if the object value is equal to another object. If the two objects are null, then this returns true.
There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways).
If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.) |