public interface HttpCacheStore
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CACHE_STORE_TYPE
Represents the key to find out the type of cache data store.
|
static String |
PN_MAXSIZE |
static String |
PN_TTL |
static String |
VALUE_CAFFEINE_MEMORY_STORE_TYPE
Value representing EHCache type of cache store for the key
KEY_CACHE_STORE_TYPE |
static String |
VALUE_DISK_CACHE_STORE_TYPE
Value representing disk type of cache store for the key
KEY_CACHE_STORE_TYPE |
static String |
VALUE_JCR_CACHE_STORE_TYPE
Value representing JCR type of cache store for the key
KEY_CACHE_STORE_TYPE |
static String |
VALUE_MEM_CACHE_STORE_TYPE
Value representing in-memory type of cache store for the key
KEY_CACHE_STORE_TYPE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(CacheKey key)
Check if there is an entry in cache for the given key.
|
TempSink |
createTempSink()
Create a temp sink for stashing response stream.
|
CacheContent |
getIfPresent(CacheKey key)
Get the Cache item given a key.
|
String |
getStoreType()
Returns the store type of this store.
|
void |
invalidate(CacheKey key)
Invalidate the given cache key.
|
void |
invalidate(HttpCacheConfig cacheConfig)
Invalidate all the cached items applicable for the given cache config.
|
void |
invalidateAll()
Invalidate all entries in the cache.
|
void |
put(CacheKey key,
CacheContent content)
Put an item into the cache.
|
long |
size()
Get the number of entries in the cache.
|
static final String KEY_CACHE_STORE_TYPE
static final String VALUE_MEM_CACHE_STORE_TYPE
KEY_CACHE_STORE_TYPEstatic final String VALUE_DISK_CACHE_STORE_TYPE
KEY_CACHE_STORE_TYPEstatic final String VALUE_JCR_CACHE_STORE_TYPE
KEY_CACHE_STORE_TYPEstatic final String VALUE_CAFFEINE_MEMORY_STORE_TYPE
KEY_CACHE_STORE_TYPEstatic final String PN_TTL
static final String PN_MAXSIZE
void put(CacheKey key, CacheContent content) throws HttpCacheDataStreamException
key - Object holding the key attributes.content - Object holding the content which needs to be cached.HttpCacheDataStreamException - Failure when reading the input stream.boolean contains(CacheKey key)
key - CacheContent getIfPresent(CacheKey key)
key - bject holding the key attributes.long size()
void invalidate(CacheKey key)
key - void invalidate(HttpCacheConfig cacheConfig)
cacheConfig - void invalidateAll()
TempSink createTempSink()
String getStoreType()
Copyright © 2013–2020 Adobe. All rights reserved.