@Component public class CoexpressionCacheImpl extends Object implements InitializingBean, CoexpressionCache
CACHE_QUERY_STRINGENCY| Constructor and Description |
|---|
CoexpressionCacheImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initialize the cache; if it already exists it will not be recreated.
|
void |
cacheCoexpression(Long geneId,
Collection<CoexpressionValueObject> r) |
void |
cacheCoexpression(Map<Long,List<CoexpressionValueObject>> r) |
void |
clearCache()
Remove all elements from the cache.
|
List<CoexpressionValueObject> |
get(Long geneId) |
boolean |
isEnabled() |
int |
remove(Collection<Long> genes)
Bulk remove from cache.
|
boolean |
remove(Long id) |
void |
shutdown() |
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic void cacheCoexpression(Long geneId, Collection<CoexpressionValueObject> r)
cacheCoexpression in interface CoexpressionCachepublic void cacheCoexpression(Map<Long,List<CoexpressionValueObject>> r)
cacheCoexpression in interface CoexpressionCachepublic void clearCache()
CoexpressionCacheclearCache in interface CoexpressionCachepublic List<CoexpressionValueObject> get(Long geneId)
get in interface CoexpressionCachegeneId - gene idpublic boolean isEnabled()
isEnabled in interface CoexpressionCachepublic int remove(Collection<Long> genes)
CoexpressionCacheremove in interface CoexpressionCachegenes - genespublic boolean remove(Long id)
remove in interface CoexpressionCachepublic void shutdown()
shutdown in interface CoexpressionCacheCopyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.