[This is preliminary documentation and is subject to change.]
The ComplexKeyHashingStrategy type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | ComplexKeyHashingStrategy | Initializes a new instance of the ComplexKeyHashingStrategy class |
Methods
Name | Description | |
---|---|---|
![]() | ComplexKeyToCacheKey |
Override to convert complex object to uint64 key.
The default implementation returns DefaultComplexKeyToCacheKey(key)
|
![]() ![]() | DefaultComplexKeyToCacheKey |
Default implementation that converts complex object to uint64 key.
The default implementation returns the hashcode of the object unless the key is string
in which case it calls DefaultStringKeyToCacheKey() or IULongHashProvider(GDID and parcels).
The function is not deterministic due to the use of .GetHashCode() that may change between release for some objects (depends on object implementation),
so the returned value should not be persisted
|
![]() ![]() | DefaultStringKeyToCacheKey |
Provides default implementation for converting string keys into uint64 hash.
This functions provides the best selectivity for strings that are 8 chars long or less.
The function is NOT deterministic as it uses .GetHashCode(), so the returned value should not be persisted
|
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | Get |
Override to get a value keyed on a non-uint64 scalar from cache. Returns null when item does not exist
|
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | Put |
Override to put a value keyed on a non-uint64 scalar into cache. Returns table.Put() result
|
![]() | Remove |
Override to remove an item keyed on a non-uint64 scalar from cache. Returns true if remove found and removed item from table
|
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() ![]() | MAX_CACHE_CHAIN_LENGTH |
How many times hash will be adjusted while chaining
|
![]() | Store |
References cachestore that this strategy works with
|
See Also