Skip to content

Commit

Permalink
add public DEFAULT_MAX_SIZE
Browse files Browse the repository at this point in the history
  • Loading branch information
CarGuo committed Mar 19, 2020
1 parent 8a3cb2a commit 587b80c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@

public class ProxyCacheManager implements ICacheManager, CacheListener {

public static int DEFAULT_MAX_SIZE = 512 * 1024 * 1024;

//视频代理
protected HttpProxyCacheServer proxy;

Expand Down Expand Up @@ -154,6 +156,7 @@ public HttpProxyCacheServer newProxy(Context context, File file) {
}
HttpProxyCacheServer.Builder builder = new HttpProxyCacheServer.Builder(context);
builder.cacheDirectory(file);
builder.maxCacheSize(DEFAULT_MAX_SIZE);
builder.headerInjector(userAgentHeadersInjector);
mCacheDir = file;
return builder.build();
Expand Down

0 comments on commit 587b80c

Please sign in to comment.