public abstract class CacheModule
extends com.google.gerrit.extensions.config.FactoryModule
Cache instances in Guice.| Constructor and Description | 
|---|
| CacheModule() | 
| Modifier and Type | Method and Description | 
|---|---|
| protected <K,V> CacheBinding<K,V> | cache(String name,
     Class<K> keyType,
     Class<V> valType)Declare a named in-memory cache. | 
| protected <K,V> CacheBinding<K,V> | cache(String name,
     Class<K> keyType,
     com.google.inject.TypeLiteral<V> valType)Declare a named in-memory cache. | 
| protected <K,V> CacheBinding<K,V> | cache(String name,
     com.google.inject.TypeLiteral<K> keyType,
     com.google.inject.TypeLiteral<V> valType)Declare a named in-memory cache. | 
| protected <K extends Serializable,V extends Serializable>  | persist(String name,
       Class<K> keyType,
       Class<V> valType)Declare a named in-memory/on-disk cache. | 
| protected <K extends Serializable,V extends Serializable>  | persist(String name,
       Class<K> keyType,
       com.google.inject.TypeLiteral<V> valType)Declare a named in-memory/on-disk cache. | 
| protected <K extends Serializable,V extends Serializable>  | persist(String name,
       com.google.inject.TypeLiteral<K> keyType,
       com.google.inject.TypeLiteral<V> valType)Declare a named in-memory/on-disk cache. | 
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingprotected <K,V> CacheBinding<K,V> cache(String name, Class<K> keyType, Class<V> valType)
K - type of key used to lookup entries.V - type of value stored by the cache.protected <K,V> CacheBinding<K,V> cache(String name, Class<K> keyType, com.google.inject.TypeLiteral<V> valType)
K - type of key used to lookup entries.V - type of value stored by the cache.protected <K,V> CacheBinding<K,V> cache(String name, com.google.inject.TypeLiteral<K> keyType, com.google.inject.TypeLiteral<V> valType)
K - type of key used to lookup entries.V - type of value stored by the cache.protected <K extends Serializable,V extends Serializable> CacheBinding<K,V> persist(String name, Class<K> keyType, Class<V> valType)
K - type of key used to lookup entries.V - type of value stored by the cache.protected <K extends Serializable,V extends Serializable> CacheBinding<K,V> persist(String name, Class<K> keyType, com.google.inject.TypeLiteral<V> valType)
K - type of key used to lookup entries.V - type of value stored by the cache.protected <K extends Serializable,V extends Serializable> CacheBinding<K,V> persist(String name, com.google.inject.TypeLiteral<K> keyType, com.google.inject.TypeLiteral<V> valType)
K - type of key used to lookup entries.V - type of value stored by the cache.