InMemoryCache Members
Include Protected Members
Include Inherited Members
Retired Content |
---|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
The latest Enterprise Library information can be found at the Enterprise Library site. |
The InMemoryCache type exposes the following members.
Constructors
Name | Description | |
---|---|---|
InMemoryCache(String, Int32, Int32, TimeSpan) |
Initializes a new instance of the InMemoryCache class.
|
|
InMemoryCache(String, Int32, Int32, IManuallyScheduledWork, IRecurringWorkScheduler) |
Initializes a new instance of the InMemoryCache class.
|
Methods
Name | Description | |
---|---|---|
Add(CacheItem, CacheItemPolicy) |
When overridden in a derived class, tries to insert a cache entry into the cache as a CacheItem instance, and adds details about how the entry should be evicted.
(Inherited from ObjectCache.) |
|
Add(String, Object, CacheItemPolicy, String) |
When overridden in a derived class, inserts a cache entry into the cache, specifying information about how the entry will be evicted.
(Inherited from ObjectCache.) |
|
Add(String, Object, DateTimeOffset, String) |
When overridden in a derived class, inserts a cache entry into the cache without overwriting any existing cache entry.
(Inherited from ObjectCache.) |
|
AddOrGetExisting(CacheItem, CacheItemPolicy) |
Inserts the specified CacheItem object into the cache, specifying information about how the entry will be evicted.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
AddOrGetExisting(String, Object, CacheItemPolicy, String) |
Inserts a cache entry into the cache, specifying a key and a value for the cache entry, and information about how the entry will be evicted.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
AddOrGetExisting(String, Object, DateTimeOffset, String) |
Inserts a cache entry into the cache, by using a key, an object for the cache entry, an absolute expiration value, and an optional region to add the cache into.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Contains |
Checks whether the cache entry already exists in the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
CreateCacheEntry |
Creates a cache entry.
(Overrides MemoryBackedCacheBase<TCacheEntry>.CreateCacheEntry(String, Object, CacheItemPolicy).) |
|
Dispose() |
Releases resources.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Dispose(Boolean) |
Releases resources.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoAddOrGetExisting |
Actual implementation for adding or getting a cache item.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoContains |
Checks whether the entry identified by a key is stored in memory.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoExpirations |
Performs an expiration sweep.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoGet |
Actual implementation for getting a cache item.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoGetCount |
Gets the total number of cache entries in the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoGetEnumerator |
Creates an enumerator that can be used to iterate through a collection of cache entries.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoGetValues |
Gets a set of cache entries that correspond to the specified keys.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoRemove |
Removes a cache entry from the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoScavenging |
Performs a scavenging sweep.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoSet |
Inserts a cache entry into the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
DoUpdateLastAccessTime |
Updates the last access time on an entry.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Equals | (Inherited from Object.) | |
Finalize |
Releases resources.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Get |
Gets the specified cache entry from the cache as an object.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
GetCacheItem |
Gets the specified cache entry from the cache as a CacheItem instance.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
GetCount |
Gets the total number of cache entries in the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
GetEnumerator |
Creates an enumerator that can be used to iterate through a collection of cache entries.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
|
GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
|
GetValues(IEnumerable<String>, String) |
Gets a set of cache entries that correspond to the specified keys.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
GetValues(String, array<String>) |
Gets a set of cache entries that correspond to the specified keys.
(Inherited from ObjectCache.) |
|
InnerAdd |
Adds an entry to the dictionary in the cache object.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
OnItemRemoved |
Invoked when an entry was removed from the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
OnItemRemoving |
Invoked when an entry is being removed from the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Remove |
Removes the cache entry from the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
ScheduleScavenging |
Schedules a scavenging operation.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
ScheduleScavengingIfNeeded |
Schedules a scavenging operation if needed.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Set(CacheItem, CacheItemPolicy) |
Inserts the cache entry into the cache as a CacheItem instance, specifying information about how the entry will be evicted.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Set(String, Object, CacheItemPolicy, String) |
Inserts a cache entry into the cache.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Set(String, Object, DateTimeOffset, String) |
Inserts a cache entry into the cache, specifying time-based expiration details.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
DefaultCacheCapabilities |
Gets a description of the features that a cache implementation provides.
(Overrides ObjectCache.DefaultCacheCapabilities.) |
|
Item |
Gets or sets the default indexer for the ObjectCache class.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |
|
Name |
Gets the name of the cache instance.
(Inherited from MemoryBackedCacheBase<TCacheEntry>.) |