TeamFoundationCacheService<TKey, TValue>.DoCleanup Method

This method is called to cleanup the cache. Derived class must implement cleanup strategy. A lock is acquired before this method is called, which gurantees that derived class has an exclusive access to the cache dictionary. Values are tuples, where Item1 is a stop watch that is set on a last access to the item, and Item2 is an item itself.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Protected MustOverride Sub DoCleanup ( _
    cache As Dictionary(Of TKey, Tuple(Of Stopwatch, TValue)) _
)
protected abstract void DoCleanup(
    Dictionary<TKey, Tuple<Stopwatch, TValue>> cache
)
protected:
virtual void DoCleanup(
    Dictionary<TKey, Tuple<Stopwatch^, TValue>^>^ cache
) abstract
abstract DoCleanup : 
        cache:Dictionary<'TKey, Tuple<Stopwatch, 'TValue>> -> unit
protected abstract function DoCleanup(
    cache : Dictionary<TKey, Tuple<Stopwatch, TValue>>
)

Parameters

.NET Framework Security

See Also

Reference

TeamFoundationCacheService<TKey, TValue> Class

Microsoft.TeamFoundation.Framework.Server Namespace