public class StringKeyCache
extends java.lang.Object
| Constructor and Description |
|---|
StringKeyCache(GridConnection connection,
java.lang.String name,
boolean legacy) |
StringKeyCache(GridConnection connection,
java.lang.String name,
int size,
boolean legacy)
Instantiate the string key cache with a grid connection, name, max size, and record if legacy string (unicode) keys are in use.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
get(byte[] serial)
Retrieve the string key for this hashed string key.
|
void |
put(byte[] serial,
java.lang.String key)
Add an item to this in-process string key cache
|
public StringKeyCache(GridConnection connection, java.lang.String name, boolean legacy)
public StringKeyCache(GridConnection connection, java.lang.String name, int size, boolean legacy)
connection - the grid connectionname - the name of the Cache where this string key cache is usedsize - the max size of the string key cachelegacy - flag to record if this cache is using legacy string keyspublic java.lang.String get(byte[] serial)
serial - the hashed string keypublic void put(byte[] serial,
java.lang.String key)
serial - the hashed string keykey - the string key