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.

Namespace:   System.Web.Caching
Assembly:  System.Web (in System.Web.dll)

System::Object
  System.Configuration.Provider::ProviderBase
    System.Web.Caching::CacheStoreProvider

public ref class CacheStoreProvider abstract : ProviderBase, 
	IDisposable

NameDescription
System_CAPS_protmethodCacheStoreProvider()

Initializes a new instance of this class.

NameDescription
System_CAPS_pubpropertyDescription

Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).(Inherited from ProviderBase.)

System_CAPS_pubpropertyItemCount

Gets the number of items stored in the cache.

System_CAPS_pubpropertyName

Gets the friendly name used to refer to the provider during configuration.(Inherited from ProviderBase.)

System_CAPS_pubpropertySizeInBytes

Gets the approximate size in bytes of the cache.

NameDescription
System_CAPS_pubmethodAdd(String^, Object^, CacheInsertOptions^)

Adds the specified item to the cache with options.

System_CAPS_pubmethodAddDependent(String^, CacheDependency^, DateTime%)

Adds a dependant entity to the cache.

System_CAPS_pubmethodDispose()

Releases all resources that are used by the current instance of the cache object.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGet(String^)

Retrieves the specified item from the cache if it exists.

System_CAPS_pubmethodGetEnumerator()

Retrieves a dictionary enumerator used to iterate through the key settings and their values contained in the cache.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInitialize(String^, NameValueCollection^)

Initializes the named cache.

System_CAPS_pubmethodInsert(String^, Object^, CacheInsertOptions^)

Inserts an object and dependencies into the cache.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(String^)

Removes the item from the cache.

System_CAPS_pubmethodRemove(String^, CacheItemRemovedReason)

Removes the specified item from the cache if it exists.

System_CAPS_pubmethodRemoveDependent(String^, CacheDependency^)

Removes the specified dependency.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodTrim(Int32)

Removes a specified percentage of cache entries.

.NET Framework
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.

Return to top
Show: