CacheStoreProvider Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides the base interface required of any cache store that wants to be plugged in as the default object cache implementation used by MemoryCache.
public ref class CacheStoreProvider abstract : System::Configuration::Provider::ProviderBase, IDisposable
public abstract class CacheStoreProvider : System.Configuration.Provider.ProviderBase, IDisposable
type CacheStoreProvider = class
inherit ProviderBase
interface IDisposable
Public MustInherit Class CacheStoreProvider
Inherits ProviderBase
Implements IDisposable
- Inheritance
- Implements
Cache |
Initializes a new instance of this class. |
Description |
Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs). (Inherited from ProviderBase) |
Item |
Gets the number of items stored in the cache. |
Name |
Gets the friendly name used to refer to the provider during configuration. (Inherited from ProviderBase) |
Size |
Gets the approximate size in bytes of the cache. |
Add(String, Object, Cache |
Adds the specified item to the cache with options. |
Add |
Adds a dependant entity to the cache. |
Dispose() |
Releases all resources that are used by the current instance of the cache object. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get(String) |
Retrieves the specified item from the cache if it exists. |
Get |
Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache. |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Initialize(String, Name |
Initializes the named cache. |
Insert(String, Object, Cache |
Inserts an object and dependencies into the cache. |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Remove(String, Cache |
Removes the specified item from the cache if it exists. |
Remove(String) |
Removes the item from the cache. |
Remove |
Removes the specified dependency. |
To |
Returns a string that represents the current object. (Inherited from Object) |
Trim(Int32) |
Removes a specified percentage of cache entries. |
Product | Versions |
---|---|
.NET Framework | 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: