Package com.scaleout.client.caching
Class StringKeyCache
java.lang.Object
com.scaleout.client.caching.StringKeyCache
Maintains an in-process cache of string keys.
-
Constructor Summary
ConstructorDescriptionStringKeyCache
(GridConnection connection, 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. -
Method Summary
-
Constructor Details
-
StringKeyCache
Instantiate the string key cache with a grid connection, name, max size, and record if legacy string (unicode) keys are in use.- Parameters:
connection
- the grid connectionname
- the name of theCache
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 keys
-
-
Method Details
-
get
Retrieve the string key for this hashed string key.- Parameters:
serial
- the hashed string key- Returns:
- the string key
-
put
Add an item to this in-process string key cache- Parameters:
serial
- the hashed string keykey
- the string key
-