←Select platform

FileCache Class Methods

Summary

For a list of all members of this type, see FileCache members

Public Methods

Name Description
Public Method AddOrGetExisting<T> Adds a cache entry into the cache, and returns an existing cache entry with a matching key.
Public Method beginAdd Begins adding a new cache item.
Public Method BeginAddExternalResource Begins adding a new cache item.
Public Method CheckPolicies Checks the policy of all items in the cache and purge any item that has been expired.
Public Method CheckPolicy Checks the policy of an existing cache item or items in a region and purge it if it has expired.
Public Method Contains Checks whether the specified cache entry exists in the cache.
Public Method DeleteItem Deletes the specified item from the cache.
Public Method DeleteRegion Deletes the specified region and all its data.
Public Method endAdd Ends adding a new cache item and commit the changes.
Public Method EndAddExternalResource<T> Ends adding a new cache item and commit the changes.
Public Method EnumerateKeys Enumerates all the items in a region.
Public Method EnumerateRegions Enumerates all the regions in this cache.
Public Method GetCacheItem<T> Specified cache entry from the cache.
Public Method getCacheUrl URI to the physical file holding the data for the specified item.
Public Method GetCount Total number of cache entries in the cache.
Public Method GetEnumerator Creates an enumerator that can be used to iterate through a collection of cache entries.
Public Method GetItemExternalResource Get a URI to the cache item
Public Method GetItemVirtualDirectoryUrl Gets a URI that provides HTTP GET access to data for the specified item.
Public Method GetPolicy Gets the policy stored with the specified cache item.
Public Method GetStatistics Returns a snapshot of the number of items in the specified region.
Public Method GetValues Cache entries that corresponds the specified keys.
Public Method Remove<T> Removes an entry from the cache.
Public Method RemoveItemExternalResource Removes the external resource URI associated with the specified cache item
Public Method SetName Sets the unique name of this file cache object.
Public Method UpdateCacheItem<T> Update an existing item in the cache.
Public Method UpdatePolicy Update the policy of an existing cache item.

Protected Methods

Name Description
Protected Method GetRegionName Actual region name.
Protected Method LoadConfigurationValues Load the configuration of this cache object from the specified dictionary.
Protected Method OnCacheItemExpired Overrides OnCacheItemExpired.
Protected Method OnCacheItemExpiring Overrides OnCacheItemExpiring.
Protected Method SaveConfigurationValues Saves the configuration of this cache object to the specified dictionary.

See Also

FileCache Class

Leadtools.Caching Namespace

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.