public interface RequestCache
SPI for all implementation of RequestCache.
Dandelion provides one out-of-the-box service provider:
MemoryRequestCache that uses the memory to store cache entries.| Modifier and Type | Field and Description |
|---|---|
static String |
DANDELION_CACHE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all objects stored in cache.
|
CacheEntry |
get(String cacheKey)
Gets the set of assets to be displayed for a request stored under the
passed
cacheKey. |
Collection<CacheEntry> |
getAll() |
String |
getCacheName() |
AtomicLong |
getGetCount() |
AtomicLong |
getHitCount() |
AtomicLong |
getMissCount() |
AtomicLong |
getPutCount() |
void |
initCache(Context context)
Initializes the configured service provider of the
RequestCache
SPI by using the Context. |
void |
put(String cacheKey,
CacheEntry cacheElement)
Puts the passed
assets to the cache. |
static final String DANDELION_CACHE_NAME
void initCache(Context context)
Initializes the configured service provider of the RequestCache
SPI by using the Context.
context - The Context initialized in the DandelionFilter .String getCacheName()
CacheEntry get(String cacheKey)
cacheKey.cacheKey - The cache key under which the set of assets is stored in the
cache.Collection<CacheEntry> getAll()
void put(String cacheKey, CacheEntry cacheElement)
assets to the cache.cacheKey - The key used to puts the assets to the cache.cacheElement - The assets to store in the cache.AtomicLong getGetCount()
AtomicLong getPutCount()
AtomicLong getHitCount()
AtomicLong getMissCount()
void clear()
Copyright © 2013-2015 Dandelion Project. All Rights Reserved.