C# Class Memoizer.NET.MemoizerConfiguration

Immutable value class representing a memoizer configuration - used for creating memoizer instances.
Datei anzeigen Open project: eirikt/Memoizer.NET Class Usage Examples

Private Properties

Property Type Description
MemoizerConfiguration System

Public Methods

Method Description
Equals ( object otherObject ) : bool
GetHashCode ( ) : int

MemoizerConfiguration hash code format: 5 digits with function ID + 5 digits hash of the rest. 2^31 == 2 147 483 648 == 21474 83648 => max 21474 different Funcs, and 83648 different expiration configurations... This has clearly limitations, but it's OK as a proof-of-concept, I guess - it's fixable :-)

Private Methods

Method Description
MemoizerConfiguration ( object function, ExpirationType expirationType, int expirationValue, TimeUnit expirationTimeUnit, Action loggerMethod ) : System

Method Details

Equals() public method

public Equals ( object otherObject ) : bool
otherObject object
return bool

GetHashCode() public method

MemoizerConfiguration hash code format: 5 digits with function ID + 5 digits hash of the rest. 2^31 == 2 147 483 648 == 21474 83648 => max 21474 different Funcs, and 83648 different expiration configurations... This has clearly limitations, but it's OK as a proof-of-concept, I guess - it's fixable :-)
public GetHashCode ( ) : int
return int