public class LruCacheProvider extends Object implements CacheProvider
EhCacheCacheProvider.| Constructor and Description |
|---|
LruCacheProvider(com.google.inject.Injector injector,
int defaultCapacity) |
LruCacheProvider(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
<K,V> Cache<K,V> |
createCache(String name)
Create a named single instance cache in this cache manager, if the cache
already exists, return it if the name is null, a new anonymous cache is
created
|
@Inject
public LruCacheProvider(com.google.inject.Injector injector,
int defaultCapacity)
public LruCacheProvider(int capacity)
public <K,V> Cache<K,V> createCache(String name)
CacheProvidercreateCache in interface CacheProviderK - The Key type for the cacheV - The pay-load typename - The non-null name of the cache.Copyright © 2007-2012. All Rights Reserved.