Create a instance of IEvictionStrategy<(Of <(TKey, TValue>)>), each segment of the storage will
call this method upon construction. This method will be called according to the supplied numberOfSegments parameter times.
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
public IEvictionStrategy<TKey, TValue> CreateSegmentEvictionStrategy<TKey, TValue>( int segmentIndex, int totalSegments )
Public Function CreateSegmentEvictionStrategy(Of TKey, TValue) ( _ segmentIndex As Integer, _ totalSegments As Integer _ ) As IEvictionStrategy(Of TKey, TValue)
public: generic<typename TKey, typename TValue> virtual IEvictionStrategy<TKey, TValue>^ CreateSegmentEvictionStrategy( int segmentIndex, int totalSegments ) sealed
Generic Template Parameters
- TKey
- Type of key.
- TValue
- Type of value.
Return Value
Instance of IEvictionStrategy<(Of <(TKey, TValue>)>).