@ProviderType public interface CacheStore
Modifier and Type | Method and Description |
---|---|
CacheFile |
create(java.lang.String key,
Headers headers)
Create a new cache file.
|
boolean |
evict(java.lang.String key)
Evict some cache file.
|
void |
evictAll(java.lang.String host,
java.lang.String path)
Evict all cache files starting with a given path.
|
CacheFile |
lookup(java.lang.String key)
Lookup an existing cache file.
|
CacheFile create(java.lang.String key, Headers headers) throws java.io.IOException
key
- cache keyheaders
- response headersjava.io.IOException
- if an I/O error occursCacheFile lookup(java.lang.String key)
key
- cache keynull
boolean evict(java.lang.String key)
key
- cache keytrue
if some file was evicted;
false
otherwisevoid evictAll(java.lang.String host, java.lang.String path)
host
- hostnamepath
- path prefixCopyright © 2010 - 2020 Adobe. All Rights Reserved