Open sandboxFocus

Method GetHashLength

GetHashLength(CacheKeyHashingAlgorithm)

Gets the maximum length of the hash string for the specified algorithm.

Declaration
public static int GetHashLength(CacheKeyHashingAlgorithm algorithm)
Parameters
Type Name Description
CacheKeyHashingAlgorithm algorithm

The hashing algorithm.

Returns
Type Description
int

The maximum hash string length (XxHash64 = 11, XxHash128 = 22).