Method Encode
- Namespace
- Scaleout.Client.KeyEncoding
- Assembly
- Scaleout.Client.dll
Encode(string)
Encodes a short string (less than or equal to 26 bytes) as a ScaleOut key.
public override KeyEncodingResult Encode(string key)
Parameters
key
stringA string key that does not exceed 26 bytes when encoded with UTF-8.
Returns
- KeyEncodingResult
A KeyEncodingResult.
Exceptions
- ArgumentException
The key length exceeds 26-bytes.