MemoryBackedCacheBase<TCacheEntry> 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 MemoryBackedCacheBase<TCacheEntry> type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MemoryBackedCacheBase<TCacheEntry> |
Initializes a new instance of the MemoryBackedCacheBase<TCacheEntry> 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.
(Overrides ObjectCache.AddOrGetExisting(CacheItem, CacheItemPolicy).) |
|
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.
(Overrides ObjectCache.AddOrGetExisting(String, Object, CacheItemPolicy, String).) |
|
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.
(Overrides ObjectCache.AddOrGetExisting(String, Object, DateTimeOffset, String).) |
|
Contains |
Checks whether the cache entry already exists in the cache.
(Overrides ObjectCache.Contains(String, String).) |
|
CreateCacheEntry |
Creates a cache entry.
|
|
Dispose() |
Releases resources.
|
|
Dispose(Boolean) |
Releases resources.
|
|
DoAddOrGetExisting |
Actual implementation for adding or getting a cache item.
|
|
DoContains |
Checks whether the entry identified by a key is stored in memory.
|
|
DoExpirations |
Performs an expiration sweep.
|
|
DoGet |
Actual implementation for getting a cache item.
|
|
DoGetCount |
Gets the total number of cache entries in the cache.
|
|
DoGetEnumerator |
Creates an enumerator that can be used to iterate through a collection of cache entries.
|
|
DoGetValues |
Gets a set of cache entries that correspond to the specified keys.
|
|
DoRemove |
Removes a cache entry from the cache.
|
|
DoScavenging |
Performs a scavenging sweep.
|
|
DoSet |
Inserts a cache entry into the cache.
|
|
DoUpdateLastAccessTime |
Updates the last access time on an entry.
|
|
Equals | (Inherited from Object.) | |
Finalize |
Releases resources.
(Overrides Object.Finalize().) |
|
Get |
Gets the specified cache entry from the cache as an object.
(Overrides ObjectCache.Get(String, String).) |
|
GetCacheItem |
Gets the specified cache entry from the cache as a CacheItem instance.
(Overrides ObjectCache.GetCacheItem(String, String).) |
|
GetCount |
Gets the total number of cache entries in the cache.
(Overrides ObjectCache.GetCount(String).) |
|
GetEnumerator |
Creates an enumerator that can be used to iterate through a collection of cache entries.
(Overrides ObjectCache.GetEnumerator().) |
|
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.
(Overrides ObjectCache.GetValues(IEnumerable<String>, String).) |
|
GetValues(String, array<String>) |
Gets a set of cache entries that correspond to the specified keys.
(Inherited from ObjectCache.) |
|
GuardNoRegion |
Ensures that no region has been specified.
|
|
InnerAdd |
Adds an entry to the dictionary in the cache object.
|
|
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
|
OnItemRemoved |
Invoked when an entry was removed from the cache.
|
|
OnItemRemoving |
Invoked when an entry is being removed from the cache.
|
|
Remove |
Removes the cache entry from the cache.
(Overrides ObjectCache.Remove(String, String).) |
|
ScheduleScavenging |
Schedules a scavenging operation.
|
|
ScheduleScavengingIfNeeded |
Schedules a scavenging operation if needed.
|
|
Set(CacheItem, CacheItemPolicy) |
Inserts the cache entry into the cache as a CacheItem instance, specifying information about how the entry will be evicted.
(Overrides ObjectCache.Set(CacheItem, CacheItemPolicy).) |
|
Set(String, Object, CacheItemPolicy, String) |
Inserts a cache entry into the cache.
(Overrides ObjectCache.Set(String, Object, CacheItemPolicy, String).) |
|
Set(String, Object, DateTimeOffset, String) |
Inserts a cache entry into the cache, specifying time-based expiration details.
(Overrides ObjectCache.Set(String, Object, DateTimeOffset, String).) |
|
ToString | (Inherited from Object.) |
Properties
Name | Description | |
---|---|---|
DefaultCacheCapabilities |
When overridden in a derived class, gets a description of the features that a cache implementation provides.
(Inherited from ObjectCache.) |
|
Item |
Gets or sets the default indexer for the ObjectCache class.
(Overrides ObjectCache.Item[String].) |
|
Name |
Gets the name of the cache instance.
(Overrides ObjectCache.Name.) |
See Also
MemoryBackedCacheBase<TCacheEntry> Class
Microsoft.Practices.EnterpriseLibrary.Caching.InMemory Namespace