在okhttp3版本和以前的不一樣了么,我想設(shè)置一下緩存,但是沒(méi)有顯示有這個(gè)setCache()方法?public CacheResponse(File cacheDirectory) throws Exception { int cacheSize = 10 * 1024 * 1024; // 10 MiB Cache cache = new Cache(cacheDirectory, cacheSize); client = new OkHttpClient(); // 此處會(huì)提示沒(méi)有這個(gè)setCache(),我用的eclipse client.setCache(cache);}
okhttp3.3 框架中,如何設(shè)置cache?
繁星點(diǎn)點(diǎn)滴滴
2019-03-13 14:14:01