The CachingBase<(Of <(<'T>)>)> type exposes the following members.


Protected methodCachingBase<(Of <(<'T>)>)>
Initializes a new instance of the CachingBase[V]; class.


Protected methodCachedItemRemovedCallBack
provides callback funcationality when an item is removed from the cache Remarks: only when an item has expired in the cache should it be removed from the cache keys list
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGet
gets a value out of the cache denoted by the key suffix supplied
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnCacheItemExpired
method to raise event if event is subscribed to
Protected methodPut(String, T)
puts an item into the cache using the key and value supplied in parameters Remarks: update will occurr on item if item is put into the cache that already exists under the same key
Protected methodPut(String, T, TimeSpan)
adds an items to the cache using the specified key and ttl Remarks: going to assume that a put with an existing key will not throw an exception but should rather update the item in the cache
Protected methodRemove
removes an item from the cache denoted by the key suffix
Public methodRemoveAll
removes all items from the cache Remarks: If the cache is being cleaned out, it should be safe to assume that a lock is not needed to stop values from being written to the cache/list of keys while they are being cleaned code utilizing this method should take this into consideration if need be locks can be added to stop any io on the storage objects
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)


Protected fieldm_ignoreExpiration
flag for indicating whether or not to ignore expiration during cleansing of cache
Protected fieldm_keys
dictionary used for local resolution of keys as opposed to having to hit the cache for related counts, contains etc
Protected fieldm_lock
locking mechanism used to enforce thread saftey


Public propertyCacheCount
Gets the CacheCount of the CachingBase
Protected propertyTtl
implementation for this property should be provided by the extending class to set the class-level TTL timepsane for items stored in the cache


Public eventCacheItemExpired
event for notification of an item's expiration from the cache

See Also