Redigeeri

Jagamisviis:


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

Constructors

CacheStoreProvider()

Initializes a new instance of this class.

Properties

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.

Methods

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)
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()

Gets the Type of the current instance.

(Inherited from Object)
Initialize(String, NameValueCollection)

Initializes the named cache.

Insert(String, Object, CacheInsertOptions)

Inserts an object and dependencies into the cache.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(String, CacheItemRemovedReason)

Removes the specified item from the cache if it exists.

Remove(String)

Removes the item from the cache.

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.

Applies to