Share via


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
Protected method MemoryBackedCacheBase<TCacheEntry>
Initializes a new instance of the MemoryBackedCacheBase<TCacheEntry> class.

Methods

  Name Description
Public method 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.)
Public method 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.)
Public method 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.)
Public method 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).)
Public method 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).)
Public method 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).)
Public method Contains
Checks whether the cache entry already exists in the cache.
(Overrides ObjectCache.Contains(String, String).)
Protected method CreateCacheEntry
Creates a cache entry.
Public method Dispose()
Releases resources.
Protected method Dispose(Boolean)
Releases resources.
Protected method DoAddOrGetExisting
Actual implementation for adding or getting a cache item.
Protected method DoContains
Checks whether the entry identified by a key is stored in memory.
Protected method DoExpirations
Performs an expiration sweep.
Protected method DoGet
Actual implementation for getting a cache item.
Protected method DoGetCount
Gets the total number of cache entries in the cache.
Protected method DoGetEnumerator
Creates an enumerator that can be used to iterate through a collection of cache entries.
Protected method DoGetValues
Gets a set of cache entries that correspond to the specified keys.
Protected method DoRemove
Removes a cache entry from the cache.
Protected method DoScavenging
Performs a scavenging sweep.
Protected method DoSet
Inserts a cache entry into the cache.
Protected method DoUpdateLastAccessTime
Updates the last access time on an entry.
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Releases resources.
(Overrides Object.Finalize().)
Public method Get
Gets the specified cache entry from the cache as an object.
(Overrides ObjectCache.Get(String, String).)
Public method GetCacheItem
Gets the specified cache entry from the cache as a CacheItem instance.
(Overrides ObjectCache.GetCacheItem(String, String).)
Public method GetCount
Gets the total number of cache entries in the cache.
(Overrides ObjectCache.GetCount(String).)
Protected method GetEnumerator
Creates an enumerator that can be used to iterate through a collection of cache entries.
(Overrides ObjectCache.GetEnumerator().)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method GetValues(IEnumerable<String>, String)
Gets a set of cache entries that correspond to the specified keys.
(Overrides ObjectCache.GetValues(IEnumerable<String>, String).)
Public method GetValues(String, array<String>)
Gets a set of cache entries that correspond to the specified keys.
(Inherited from ObjectCache.)
Protected methodStatic member GuardNoRegion
Ensures that no region has been specified.
Protected method InnerAdd
Adds an entry to the dictionary in the cache object.
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method OnItemRemoved
Invoked when an entry was removed from the cache.
Protected method OnItemRemoving
Invoked when an entry is being removed from the cache.
Public method Remove
Removes the cache entry from the cache.
(Overrides ObjectCache.Remove(String, String).)
Protected method ScheduleScavenging
Schedules a scavenging operation.
Protected method ScheduleScavengingIfNeeded
Schedules a scavenging operation if needed.
Public method 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).)
Public method Set(String, Object, CacheItemPolicy, String)
Inserts a cache entry into the cache.
(Overrides ObjectCache.Set(String, Object, CacheItemPolicy, String).)
Public method Set(String, Object, DateTimeOffset, String)
Inserts a cache entry into the cache, specifying time-based expiration details.
(Overrides ObjectCache.Set(String, Object, DateTimeOffset, String).)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property DefaultCacheCapabilities
When overridden in a derived class, gets a description of the features that a cache implementation provides.
(Inherited from ObjectCache.)
Public property Item
Gets or sets the default indexer for the ObjectCache class.
(Overrides ObjectCache.Item[String].)
Public property Name
Gets the name of the cache instance.
(Overrides ObjectCache.Name.)

See Also

MemoryBackedCacheBase<TCacheEntry> Class

Microsoft.Practices.EnterpriseLibrary.Caching.InMemory Namespace