abstract class HttpCacheStorage
Cache storage interface.
HttpCacheStorage()
Cache storage interface. |
abstract fun find(url: Url, varyKeys: Map<String, String>): HttpCacheEntry?
Find valid entry in cache storage with additional varyKeys. |
|
abstract fun findByUrl(url: Url): Set<HttpCacheEntry>
Find all matched HttpCacheEntry for url. |
|
abstract fun store(url: Url, value: HttpCacheEntry): Unit
|
val Disabled: HttpCacheStorage
Disabled cache always empty and store nothing. |
|
val Unlimited: () -> HttpCacheStorage
Default unlimited cache storage. |