@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 InitializingBean
public void cacheCoexpression(Long geneId, Collection<CoexpressionValueObject> r)
cacheCoexpression
in interface CoexpressionCache
public void cacheCoexpression(Map<Long,List<CoexpressionValueObject>> r)
cacheCoexpression
in interface CoexpressionCache
public void clearCache()
CoexpressionCache
clearCache
in interface CoexpressionCache
public List<CoexpressionValueObject> get(Long geneId)
get
in interface CoexpressionCache
geneId
- gene idpublic boolean isEnabled()
isEnabled
in interface CoexpressionCache
public int remove(Collection<Long> genes)
CoexpressionCache
remove
in interface CoexpressionCache
genes
- genespublic boolean remove(Long id)
remove
in interface CoexpressionCache
public void shutdown()
shutdown
in interface CoexpressionCache
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.