ASimpleCache
ASimpleCache copied to clipboard
清除缓存的问题
调用cache.clear()方法后,不能重新创建ACache目录
直接App中清除缓存,ACache好像也不能使用了,不知道怎么回事
We have encountered a similar problem, and we have verified that we can fix it. The code is as follows
public static ACache get(Context ctx) { File file = new File(ctx.getCacheDir() + File.separator + "ACache"); if (!file.exists()) { file.mkdirs(); }
return get(ctx, "ACache");
}
if (manager == null || !cacheDir.exists()) { manager = new ACache(cacheDir, max_zise, max_count); mInstanceMap.put(cacheDir.getAbsolutePath() + myPid(), manager); }