public interface Cache
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear all data
|
void |
clear(CacheEntry type)
Clear all data assigned to CacheCategory
|
Object |
get(CacheEntry type)
Get data from cache using CacheCategory
|
Object |
get(CacheEntry type,
Object key)
Get data from cache using CacheCategory and key
|
Collection |
getInBatch(CacheEntry type,
Collection keys)
Get data from cache using CacheCategory and a collections of keys
|
boolean |
hasCacheEntry(CacheEntry type)
Check whether the cache already has the cache category
|
void |
store(CacheEntry type,
Object key)
Store data into cache by key only
|
void |
store(CacheEntry type,
Object key,
Object value)
Store data into cache by key-value pairs
|
void |
storeInBatch(CacheEntry type,
Collection values)
Store a collection into the cache
|
void |
storeInBatch(CacheEntry type,
Map values)
Store a map of data into the cache
|
void store(CacheEntry type, Object key, Object value)
type
- cache typekey
- keyvalue
- valuevoid storeInBatch(CacheEntry type, Map values)
type
- cache typevalues
- a map of valuesvoid store(CacheEntry type, Object key)
type
- cache typekey
- keyvoid storeInBatch(CacheEntry type, Collection values)
type
- cache categoryvalues
- a collection of dataObject get(CacheEntry type, Object key)
type
- cache categorykey
- keyCollection getInBatch(CacheEntry type, Collection keys)
type
- cache categorykeys
- keysboolean hasCacheEntry(CacheEntry type)
type
- CacheCategoryObject get(CacheEntry type)
type
- cache categoryvoid clear(CacheEntry type)
type
- cache categoryvoid clear()
Copyright © 2015 European Bioinformatics Institute. All Rights Reserved.