Table of Contents

Class KeyEncoder<T>

Namespace
Scaleout.Client.KeyEncoding
Assembly
Scaleout.Client.dll

Base class for key encoder implementations.

public abstract class KeyEncoder<T>

Type Parameters

T

Type of key being encoded to a byte array.

Inheritance
KeyEncoder<T>
Derived
Inherited Members

Constructors

KeyEncoder()

Default constructor. If the derived encoder is a string key encoder, the internal cache of string keys is initialized to hold 10,000 string keys.

KeyEncoder(int)

Constructs a KeyEncoder with an internal string key cache of the specified size. If the derived implementation is not a string key encoder (IsStringEncoder returns false) then the parameter is ignored.

Properties

IsStringEncoder

Gets whether this key encoder stores arbitrary-length string keys in the server.

Methods

Encode(T)

Encodes a key value.

FromBytes(byte[])

Decodes a byte array to an original key value.