Table of Contents

Constructor LegacyStringKeyEncoder

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

LegacyStringKeyEncoder()

Default constructor. Initializes an internal cache of string keys to a default of 10,000 items to improve performance during event delivery and PMI operations.

public LegacyStringKeyEncoder()

LegacyStringKeyEncoder(int)

Constructs a LegacyStringKeyEncoder with an internal string key cache of the specified size.

public LegacyStringKeyEncoder(int keystringCacheSize)

Parameters

keystringCacheSize int

Number of string keys to hold in the encoder's internal cache.

Remarks

The internal cache of key strings does not typically affect the performance of ordinary CRUD-style client applications--the default of 10,000 is sufficient for most use cases.

Consider using a large keystringCacheSize in PMI invocation handler applications or other applications that process a high number of events from the ServiceEvents class. A keystring cache that is large enough to hold all object keys involved in repeated Invoke operations will significantly reduce round trips to the ScaleOut service.

Applications that perform query operations that return large numbers of string keys may also benefit from a large keystring cache.