The DnsResponseCache type exposes the following members.

Methods

  NameDescription
Public methodBuildKey
builds a common key format given the dnsquestion passed in
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
(Inherited from CachingBase<(Of <(<'T>)>)>.)
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(String)
gets a value out of the cache denoted by the key suffix supplied
(Inherited from CachingBase<(Of <(<'T>)>)>.)
Public methodGet(DnsQuestion)
gets an item from the cache using the DnsResponse to find the item
Public methodGet(DnsRequest)
gets an item from the cache using the DnsRequest to find the item
Public methodGet(DnsResponse)
gets an item from the cache using the DnsResponse to find the item
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
(Inherited from CachingBase<(Of <(<'T>)>)>.)
Public methodPut(DnsResponse)
puts an object into the cache after building the key by calling the base method Put
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
(Inherited from CachingBase<(Of <(<'T>)>)>.)
Public methodPut(DnsResponse, TimeSpan)
puts an object into the cache after building the key by calling the base method Put
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
(Inherited from CachingBase<(Of <(<'T>)>)>.)
Protected methodRemove(String)
removes an item from the cache denoted by the key suffix
(Inherited from CachingBase<(Of <(<'T>)>)>.)
Public methodRemove(DnsQuestion)
removes an item from the cache
Public methodRemove(DnsRequest)
removes an item from the cache
Public methodRemove(DnsResponse)
removes an item from the cache
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
(Inherited from CachingBase<(Of <(<'T>)>)>.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

See Also