CacheStoreProvider CacheStoreProvider CacheStoreProvider CacheStoreProvider Class

Definition

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
CacheStoreProviderCacheStoreProviderCacheStoreProviderCacheStoreProvider
Implements

Constructors

CacheStoreProvider() CacheStoreProvider() CacheStoreProvider() CacheStoreProvider()

Initializes a new instance of this class.

Properties

Description Description Description Description

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

(Inherited from ProviderBase)
ItemCount ItemCount ItemCount ItemCount

Gets the number of items stored in the cache.

Name Name Name Name

Gets the friendly name used to refer to the provider during configuration.

(Inherited from ProviderBase)
SizeInBytes SizeInBytes SizeInBytes SizeInBytes

Gets the approximate size in bytes of the cache.

Methods

Add(String, Object, CacheInsertOptions) Add(String, Object, CacheInsertOptions) Add(String, Object, CacheInsertOptions) Add(String, Object, CacheInsertOptions)

Adds the specified item to the cache with options.

AddDependent(String, CacheDependency, DateTime) AddDependent(String, CacheDependency, DateTime) AddDependent(String, CacheDependency, DateTime) AddDependent(String, CacheDependency, DateTime)

Adds a dependant entity to the cache.

Dispose() Dispose() Dispose() Dispose()

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
Get(String) Get(String) Get(String) Get(String)

Retrieves the specified item from the cache if it exists.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(String, NameValueCollection) Initialize(String, NameValueCollection) Initialize(String, NameValueCollection) Initialize(String, NameValueCollection)

Initializes the named cache.

Insert(String, Object, CacheInsertOptions) Insert(String, Object, CacheInsertOptions) Insert(String, Object, CacheInsertOptions) Insert(String, Object, CacheInsertOptions)

Inserts an object and dependencies into the cache.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(String) Remove(String) Remove(String) Remove(String)

Removes the item from the cache.

Remove(String, CacheItemRemovedReason) Remove(String, CacheItemRemovedReason) Remove(String, CacheItemRemovedReason) Remove(String, CacheItemRemovedReason)

Removes the specified item from the cache if it exists.

RemoveDependent(String, CacheDependency) RemoveDependent(String, CacheDependency) RemoveDependent(String, CacheDependency) RemoveDependent(String, CacheDependency)

Removes the specified dependency.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Trim(Int32) Trim(Int32) Trim(Int32) Trim(Int32)

Removes a specified percentage of cache entries.

Applies to