Git Product home page Git Product logo

appcache's Issues

无法获取缓存

线上用户手机(都为OPPO)获取不到缓存,无崩溃重启,7.1系统。

自己也没有重现这个问题,一开始怀疑是存储权限问题,但是把存储权限关了也是可以使用的。

获取不到缓存还会有什么其他原因吗?

看源码我也没找到原因!

谢谢

Parcelable 的 bean不能保存

public class GameTabBean implements Parcelable,Serializable {}

这个bean里嵌套里别的ben。都实现里Parcelable,Serializable。但是不能保存

如何清除所有缓存

DiskLruCache 有个 delete 方法来清除所有缓存,在这个库里面有什么办法能删除所有缓存嘛? 目前只有把所有的key放在一个集合里面 然后要删除所有的时候整个遍历一边remove

(需求)请问保存图片可以不用图片地址为key吗,自定义key,方便删除

我现在碰到的一个场景 app 广告页 想用AppCache ,通过判断缓存的图片地址和上一次是否一样,来进行新的缓存,但是上次缓存的广告图片需要删除,这样就不会本地产生垃圾图片。现在是我需要自己保存一份上次图片地址为key,来判断,去删除。所以希望带自定义key 方便替换删除。

有2个空指针

用这个库了,但是小米手机一直报错。
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getPath()' on a null object reference
disklrucache.Util.getCacheDir(Util.java)

还有就是 Cache.with(context)有时候也是空的

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.