Class ProcessedDataVectorCacheImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.expression.bioAssayData.ProcessedDataVectorCacheImpl
-
- All Implemented Interfaces:
InitializingBean
,ProcessedDataVectorCache
@Component public class ProcessedDataVectorCacheImpl extends Object implements InitializingBean, ProcessedDataVectorCache
Configures the cache for data vectors. Implementation note: This uses ehCache. I have decided to make one cache per expression experiment. The reason for this is that having complex keys for cached Elements based on expression experiment AND gene makes it difficult to invalidate the cache when an expression experiment's data changes. The drawback is that there are potentially hundreds of caches; I don't know if there are any performance considerations there.- Author:
- paul
-
-
Constructor Summary
Constructors Constructor Description ProcessedDataVectorCacheImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToCache(Long eeId, Long g, Collection<DoubleVectorValueObject> collection)
void
afterPropertiesSet()
void
clearCache()
void
clearCache(Long eeId)
Collection<DoubleVectorValueObject>
get(BioAssaySet ee, Long g)
-
-
-
Method Detail
-
addToCache
public void addToCache(Long eeId, Long g, Collection<DoubleVectorValueObject> collection)
- Specified by:
addToCache
in interfaceProcessedDataVectorCache
-
clearCache
public void clearCache()
- Specified by:
clearCache
in interfaceProcessedDataVectorCache
-
clearCache
public void clearCache(Long eeId)
- Specified by:
clearCache
in interfaceProcessedDataVectorCache
-
get
public Collection<DoubleVectorValueObject> get(BioAssaySet ee, Long g)
- Specified by:
get
in interfaceProcessedDataVectorCache
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceInitializingBean
-
-