The following tables list the members exposed by ObjectCache.
Name | Description | |
---|---|---|
ObjectCache | Initializes a new instance of ObjectCache |
Name | Description | |
---|---|---|
Add | Adds a new item into the cache using the specified absolute expiration data and region name | |
AddOrGetExisting | Adds an entry using key and value pair and absolute expiration date into the cache, and returns an existing cache entry with a matching key. | |
BeginAddExternalResource | Begins adding a new cache item. | |
Contains | Checks whether the specified cache entry exists in the cache. | |
CopyCacheItemPolicy | Creates a copy of a cache policy. | |
CreateFromConfigurations | Creates a new cache object from the specified configuration stream and optional additional values. | |
CreateFromConfigurationsString | Creates an ObjectCache derived class from the configuration XML stored in a string. | |
DateFromString | Parses a date / time value stored in a string. | |
DateToString | Converts a date / time value to a string using the current format. | |
DeleteAll | Deletes the specified items from the cache. | |
DeleteItem | Deletes the specified item from the cache. | |
DeleteRegion | Deletes the specified region and all its data. | |
EndAddExternalResource | Ends adding a new cache item and commit the changes. | |
EnumerateKeys | Enumerates all the items in a region. | |
EnumerateRegions | Enumerates all the regions in this cache. | |
Get | Value of the specified cache entry. | |
GetCacheItem | Specified cache entry from the cache. | |
GetConfigurationString | Gets the configurations of this ObjectCache as a string. | |
GetCount | Total number of cache entries in the cache. | |
GetItemCapabilities | Gets the capabilities of an existing item in the cache. | |
GetItemExternalResource | Get a URI to the cache item | |
GetItemVirtualDirectoryUrl | Gets a URI that provides HTTP GET access to data for the specified item. | |
GetPolicy | Gets the policy stored with the specified cache item. | |
GetStatistics | Returns a snapshot of the number of items in the specified region. | |
GetValues | Cache entries that correspond the specified keys. | |
IsInfinite | Determines whether the specified time span is an infinite value. | |
LoadConfiguration | Updates this ObjectCache from configuration XML stored in a stream. | |
Remove | Removes an entry from the cache. | |
RemoveItemExternalResource | Removes the external resource URI associated with the specified cache item | |
ResolveDirectory | Gets the full path to a directory. | |
SaveConfiguration | Saves the configurations of this ObjectCache to an XML stored in a stream. | |
Set | Adds a key/value pair item into the cache with the specified absolute expiration date. | |
SetConfigurationString | Updates this ObjectCache from configuration XML stored in a string. | |
SetName | Sets the unique name of this cache object. | |
Update | Update an existing item in the cache. | |
UpdateCacheItem | Update an existing item in the cache. | |
UpdatePolicy | Update the policy of an existing cache item. |
Name | Description | |
---|---|---|
GetEnumerator | Creates an enumerator that can be used to iterate through a collection of cache entries. | |
LoadConfigurationValues | Load the configuration of this cache object from the specified dictionary. | |
OnCacheItemExpired | Raises the CacheItemExpired event. | |
OnCacheItemExpiring | Raises the CacheItemExpiring event. | |
SaveConfigurationValues | Saves the configuration of this cache object to the specified dictionary. |
Name | Description | |
---|---|---|
BaseDirectory | The base directory where the cache is stored. | |
DataSerializationMode | Determines the type of serialization to use when the data is saved into the cache. | |
DefaultCacheCapabilities | The capabilities of this cache | |
Item | The cache item. | |
Name | Unique name of this cache object | |
PolicySerializationMode | Determines the type of serialization to use when the policy is saved into the cache. |
Name | Description | |
---|---|---|
CacheItemExpired | Occurs when an expired item has been removed from the cache. | |
CacheItemExpiring | Occurs when an item has expired and is about to be removed from the cache. |
Name | Description | |
---|---|---|
BASE_DIRECTORY_KEY | Name of the key used to store BaseDirectory. | |
DATA_SERIALIZATION_MODE_KEY | Name of the key used to store DataSerializationMode. | |
DateFormat | Format to use when storing dates in the XML and JSON formats. | |
InfiniteAbsoluteExpiration | Value that indicates that a cache entry has no absolute expiration. | |
NoSlidingExpiration | Value that indicates that a cache entry has no sliding expiration. | |
POLICY_SERIALIZATION_MODE_KEY | Name of the key used to store PolicySerializationMode. |