Interface CachedFetcher
-
- All Known Implementing Classes:
AbstractCachedFetcher,CachedChebiFetcher,CachedEuroPubmedCentralFetcher,CachedOlsCvTermFetcher,CachedOlsFetcher,CachedOlsOntologyTermFetcher,CachedOlsSourceFetcher,CachedUniprotGeneFetcher,CachedUniprotProteinFetcher,CachedUniprotTaxonomyFetcher,CachedUnisaveClient
public interface CachedFetcherAn interface defining the basic interaction with the cache.- Since:
- 08/07/13
- Author:
- Gabriel Aldam (galdam@ebi.ac.uk)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearCache()Clears the contents of the cache.ObjectgetFromCache(String key)Fetch an element from the cache with a given keyvoidinitialiseCache()Initialises the cache with default settings.voidinitialiseCache(String settingsFile)Initialises the cache with the settings in the file at the location.voidshutDownCache()Shuts the cache down.voidstoreInCache(String key, Object data)Stores a given object in the cache with a key
-
-
-
Method Detail
-
initialiseCache
void initialiseCache()
Initialises the cache with default settings.
-
initialiseCache
void initialiseCache(String settingsFile)
Initialises the cache with the settings in the file at the location.- Parameters:
settingsFile- The path of a file with the settings for an EHCache
-
clearCache
void clearCache()
Clears the contents of the cache.
-
shutDownCache
void shutDownCache()
Shuts the cache down.
-
-