CacheStoreProvider Class
Provides the base interface required of any cache store that wants to be plugged in as the default object cache implementation used by MemoryCache.
Assembly: System.Web (in System.Web.dll)
| Name | Description | |
|---|---|---|
![]() | CacheStoreProvider() | Initializes a new instance of this class. |
| Name | Description | |
|---|---|---|
![]() | Description | Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).(Inherited from ProviderBase.) |
![]() | ItemCount | 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.) |
![]() | SizeInBytes | Gets the approximate size in bytes of the cache. |
| Name | Description | |
|---|---|---|
![]() | Add(String, Object, CacheInsertOptions) | Adds the specified item to the cache with options. |
![]() | AddDependent(String, CacheDependency, DateTime) | 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.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | Get(String) | Retrieves the specified item from the cache if it exists. |
![]() | GetEnumerator() | Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType() | |
![]() | Initialize(String, NameValueCollection) | Initializes the named cache. |
![]() | Insert(String, Object, CacheInsertOptions) | Inserts an object and dependencies into the cache. |
![]() | MemberwiseClone() | |
![]() | Remove(String) | Removes the item from the cache. |
![]() | Remove(String, CacheItemRemovedReason) | Removes the specified item from the cache if it exists. |
![]() | RemoveDependent(String, CacheDependency) | Removes the specified dependency. |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
![]() | Trim(Int32) | Removes a specified percentage of cache entries. |
Available since 4.7
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


