ComplexKeyHashingStrategy DefaultComplexKeyToCacheKey Method NFX Class Library

[This is preliminary documentation and is subject to change.]

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

Namespace: NFX.DataAccess.Cache
Assembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
Syntax

public static ulong DefaultComplexKeyToCacheKey(
	Object key
)

Return Value

Type: OnlineUInt64
See Also