Package com.adobe.granite.httpcache.api
Interface CacheStore
Creates, manages and deletes cache files.
-
Method Summary
Modifier and TypeMethodDescriptionCreate a new cache file.booleanEvict some cache file.voidEvict all cache files starting with a given path.Lookup an existing cache file.
-
Method Details
-
create
Create a new cache file.- Parameters:
key- cache keyheaders- response headers- Returns:
- new cache file
- Throws:
IOException- if an I/O error occurs
-
lookup
Lookup an existing cache file.- Parameters:
key- cache key- Returns:
- existing cache file or
null
-
evict
Evict some cache file.- Parameters:
key- cache key- Returns:
trueif some file was evicted;falseotherwise
-
evictAll
Evict all cache files starting with a given path.- Parameters:
host- hostnamepath- path prefix
-