SPCachedObject Members

Include Protected Members
Include Inherited Members

Represents an instance of an object in a cache, along with metadata related to expiration, size, hit count, expiration, and parent-child relationships.

The SPCachedObject type exposes the following members.

Constructors

  Name Description
Public method SPCachedObject() Instantiates an SPCachedObject as a wrapper that contains no object and default metadata.
Public method SPCachedObject(String, Object, TimeSpan) Instantiates an SPCachedObject that contains the specified object and that has the specified identifier and expiration TimeSpan properties.
Public method SPCachedObject(String, Object, List<KeyValuePair>, TimeSpan) Instantiates an SPCachedObject that contains the specified object and that has the specified identifier, index key-value pair, and expiration TimeSpan properties.
Public method SPCachedObject(String, Object, String, TimeSpan) Instantiates an SPCachedObject that contains the specified object and that has the specified identifier, expiration TimeSpan and parent identifier properties.

Top

Properties

  Name Description
Public property Data Gets or sets the object that is being cached.
Public property ExpireAfter Gets or sets the expiration DateTime.
Public property HitCountRead Gets the number of read operations on the current SPCachedObject.
Public property HitCountWrite Gets the number of write operations on the current SPCachedObject.
Public property Id Gets or sets the unique identifier of the current SPCachedObject.
Public property IndexValues Gets or sets a list of KeyValuePair objects that specify index key-value pairs that can be used to access this object from the cache.
Public property LastUpdateTime Gets the latest time when the current SPCachedObject was updated.
Public property ObjectTypeName Gets the user-specified type name of the object that is being cached.
Public property ParentID Gets or sets the identifier of the parent SPCachedObject for the current SPCachedObject.
Public property SizeBytes Gets an approximate size of the current object that is being cached.

Top

Methods

  Name Description
Public method Copy Creates and returns a copy of the current SPCachedObject.
Public method ToString Returns the identifier of the current SPCachedObject as a String. (Overrides Object.ToString().)

Top

See Also

Reference

SPCachedObject Class

Microsoft.Office.Server.ObjectCache Namespace