Constructor and Description |
---|
CacheAccessor()
CacheAccessor constructor
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all cache
|
void |
clear(CacheEntry type)
Clear a cache category
|
Object |
get(CacheEntry type)
Get the stored data set using a type.
|
Object |
get(CacheEntry type,
Object key)
Get the stored data using a key.
|
Collection |
getInBatch(CacheEntry type,
Collection keys)
Get a collection of values using a collection of keys.
|
boolean |
hasCacheEntry(CacheEntry type)
Check the cachecategory availability
|
void |
store(CacheEntry type,
Object key)
Store key into cache, type should be a collection type.
|
void |
store(CacheEntry type,
Object key,
Object value)
Store a key-value pair into cache, type should be a map type.
|
void |
storeInBatch(CacheEntry type,
Collection values)
Store a collection of values
|
void |
storeInBatch(CacheEntry type,
Map values)
Store a map of values
|
public void store(CacheEntry type, Object key)
public void store(CacheEntry type, Object key, Object value)
public void storeInBatch(CacheEntry type, Map values)
storeInBatch
in interface Cache
type
- cache typevalues
- a map of valuespublic void storeInBatch(CacheEntry type, Collection values)
storeInBatch
in interface Cache
type
- cache categoryvalues
- a collection of datapublic Object get(CacheEntry type, Object key)
public Collection getInBatch(CacheEntry type, Collection keys)
getInBatch
in interface Cache
type
- cache categorykeys
- keyspublic Object get(CacheEntry type)
public boolean hasCacheEntry(CacheEntry type)
hasCacheEntry
in interface Cache
type
- CacheCategorypublic void clear(CacheEntry type)
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.