public interface HttpCache extends EngineService
By default HTTP cache stores the resources fetched from the web on a disk or in the memory. Chromium itself decides how to cache the resources for optimal performance.
The memory cache stores and loads the resources to and from the process memory – RAM. It is a fast but non-persistent way.
The disk cache is persistent. The cached resources are stored and loaded to and from the disk. The disk cache is stored in the Cache folder in the User Data directory.
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
clear()
Marks all the cache entries for deletion.
|
void |
clearDiskCache(java.lang.Runnable completionCallback)
Deprecated.
use
clear() instead. |
@Deprecated void clearDiskCache(java.lang.Runnable completionCallback)
clear()
instead.completionCallback
- callback for notification when all entries in the disk cache have
been marked for deletionjava.lang.IllegalStateException
- when the engine is closedjava.util.concurrent.CompletableFuture<java.lang.Void> clear()
java.lang.IllegalStateException
- when the engine is closed