We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在没有发起任何请求之前,单纯调用 getSize 会直接闪退。
The text was updated successfully, but these errors were encountered:
public void getHttpCacheSize(Promise promise){ try { Cache cache = OkHttpClientProvider.getOkHttpClient().cache(); promise.resolve(cache != null ? ((double)cache.size()) : 0); } catch(IOException e){ promise.reject(e); } } 源码是这么写的,那应该调用getHttpCacheSize()了吧
public void getHttpCacheSize(Promise promise){ try { Cache cache = OkHttpClientProvider.getOkHttpClient().cache(); promise.resolve(cache != null ? ((double)cache.size()) : 0); } catch(IOException e){ promise.reject(e); } }
Sorry, something went wrong.
No branches or pull requests
在没有发起任何请求之前,单纯调用 getSize 会直接闪退。
The text was updated successfully, but these errors were encountered: