Class ObjectCache<T>

java.lang.Object
io.nosqlbench.engine.api.templating.ObjectCache<T>
Type Parameters:
T - The type of object.
All Implemented Interfaces:
Function<String,T>

public class ObjectCache<T> extends Object implements Function<String,T>
An object cache to memoize returned objects into a concurrent hash map by name. This is meant to be used when you want to lazily initialize an instance of something by name that is likely to be re-used over the lifetime of an owning object, and for which the value cardinality has a knowable and reasonable maximum.