다음을 통해 공유


ISPCache Members

Include Protected Members
Include Inherited Members

Defines an interface for adding, deleting, and retrieving cached objects.

The ISPCache type exposes the following members.

Methods

  Name Description
Public method Clear Clears the cache with the specified object type.
Public method Delete(String, String) Deletes a specified object from the cache with the specified object type.
Public method Delete(String, String, Boolean) Deletes a specified object from the cache with the specified object type.
Public method DeleteByIndexedValue Deletes objects with the specified index name-value pair from the cache with the specified object type.
Public method Enum Returns all objects in the cache with the specified object type and stores them in the specified array.
Public method EnumObjectList Returns a List of the names of all the objects in the cache with the specified object type.
Public method Get Returns the object with the specified unique identifier from the cache with the specified object type.
Public method GetByIndex Returns a list of SPCachedObject objects that match the specified index name-value pairs.
Public method GetCacheObject Returns the specified SPCachedObject from the cache with the specified object type.
Public method GetItemCount Returns the number of items in the cache with the specified object type.
Public method GetTree Returns a list of all cached objects under a specified parent object and stores them in a specified List.
Public method Put(String, SPCachedObject) Writes the specified object to the cache with the specified object type.
Public method Put(String, []) Writes the objects in the specified array to the cache with the specified object type.
Public method Trim() Trims all caches of objects whose expiration date is in the past.
Public method Trim(DateTime) Trims all caches of objects whose expiration dates preceded the specified DateTime.
Public method Trim(String, DateTime) Trims the cache with the specified object type of all objects whose expiration date precedes the specified DateTime.

Top

See Also

Reference

ISPCache Interface

Microsoft.Office.Server.ObjectCache Namespace