public interface CacheStorage
BrowserPreferences.getDefaultChromiumDir()
method.
So, if Browser A and B have the same data directory, then they will access the cache of each other.
If you need to configure each Browser to use unique cache storage which is not accessible for other Browser instances, you need to provide unique user data directory for each Browser instance. The user data directory path can be provided via configured
BrowserContextParams.BrowserContextParams(String)
object that must be passed into the
Browser.Browser(BrowserContext)
factory method.
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears cache data in Browser's user data directory.
清除浏览器用户数据目录中的缓存数据。 |
void |
clearCache(Callback onCacheCleared)
Clears cache data in Browser's user data directory and notifies when cache is successfully cleared via passed
清除浏览器用户数据目录中的缓存数据,并通过传递的onCacheCleared通知何时成功清除缓存。 onCacheCleared .
|
void |
clearHttpAuthenticationCache(Callback onHttpAuthCacheCleared)
Clears HTTP authentication data and notifies when cache is successfully cleared via passed
清除HTTP身份验证数据,并通过传递的onHttpAuthCacheCleared通知何时成功清除缓存。 onHttpAuthCacheCleared .
|
void clearCache()
clearCache(com.teamdev.jxbrowser.chromium.events.Callback)
method.
void clearCache(Callback onCacheCleared)
onCacheCleared
.
onCacheCleared
- callback for notification when cache is cleared successfully. Can be
null
.
-成功清除缓存后回调通知。可 。
void clearHttpAuthenticationCache(Callback onHttpAuthCacheCleared)
onHttpAuthCacheCleared
.
onHttpAuthCacheCleared
- callback for notification when HTTP authentication cache is cleared successfully. Can be
null
.
-成功清除HTTP身份验证缓存后回调通知。可 。