T - The type of BaseEntity the cache will contain.public class Cache<T extends BaseEntity> extends Cache<Integer,T>
Objects of this class should not be created directly as they are part of the internal logic.
| Constructor and Description |
|---|
Cache(int cacheSize,
ICacheLoader<Integer,T> loader)
Constructs a new instance of the cache.
|
get, get, getCacheMisses, getCacheRequests, getPercentageMisses, resetCachepublic Cache(int cacheSize,
ICacheLoader<Integer,T> loader)
cacheSize - number of items to store in the cache.loader - used to fetch items not in the cache.Copyright © 2015 51Degrees. All rights reserved.