Click or drag to resize

CacheManager Methods

The CacheManager type exposes the following members.

Methods
  NameDescription
Public methodCacheObject
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.
Public methodCacheString
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.
Public methodCacheTable
Public methodDeleteExpiredItems
Delete all expired cache items from the cache.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFlush
Flush the user's cache for the specified item.
Public methodFlushByRelID
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.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSafeSignature
Converts s signature as provided to public methods in this class, into the signature used in the cache table.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTryGetObject
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.
Public methodTryGetString
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.
Public methodTryGetTable(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.
Public methodTryGetTable(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.
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
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.)
Top
See Also