Click or drag to resize

EAPObjectCache Class

Singleton class that implements a generic cache collection. Writes to the internal collection are locked and can only be done by one thread at a time. Reads are not locked.
Inheritance Hierarchy
SystemObject
  NetQuarryEAPObjectCache

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
[SerializableAttribute]
public sealed class EAPObjectCache : IDisposable

The EAPObjectCache type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCacheObject
Adds an object to the cache. If an object with the same name already exists it is NOT replaced.
Public methodStatic memberClear
Removes all elements from the Hashtable.
Public methodStatic memberDevInfoHtml
Generate an HTML table showing debug info about the cached items.
Public methodDispose
Close the database connection(s)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetCachedObject
Returns the object cached by the key. If the object does not exist the return value is null
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.)
Public methodStatic memberInitCache
Called from HttpApplication.Init to keep this object around
Public methodStatic memberRemove
Removes the element with the specified key from the internal collection.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
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
Remarks
There is a good blog on this here: http://developers.ie/blogs/macinnesm/archive/2004/11/01/171.aspx
See Also