Code Monkey home page Code Monkey logo

Comments (8)

yanzhenjie avatar yanzhenjie commented on July 22, 2024

@q1466215893
DiskCacheStore.INSTANCE.remove(String)删除某一个指定Key的缓存,Key默认是Url,Key可以通过Request.setCacheKey来改变。
DiskCacheStore.INSTANCE.clear()清除所有缓存。

from nohttp.

Lsy1992 avatar Lsy1992 commented on July 22, 2024

获取缓存文件大小呢?

from nohttp.

yanzhenjie avatar yanzhenjie commented on July 22, 2024

@Lsy1992 没有缓存文件这个概念喔

from nohttp.

Lsy1992 avatar Lsy1992 commented on July 22, 2024

额,我是这个意思,就好比你使用微博的“清除缓存”功能一样,它会显示出缓存的大小例如:(123M)这样,不知道我们这个库能否取到缓存大小?

from nohttp.

yanzhenjie avatar yanzhenjie commented on July 22, 2024

@Lsy1992 这个目前没有,如果开启了缓存的话,数据是保存在数据库的。我在下个版本加一下,不过这个影响不大应该。

from nohttp.

fairytale2016 avatar fairytale2016 commented on July 22, 2024

查看手机上项目database文件夹里面,既然在数据库,就可以自己获取文件大小

from nohttp.

Khaos116 avatar Khaos116 commented on July 22, 2024

可以设置缓存时间么?

from nohttp.

yanzhenjie avatar yanzhenjie commented on July 22, 2024

@fairytale2016 @Lsy1992 新版的NoHttp支持设置缓存到数据库、SD卡、SD卡需要制定文件夹位置,你就可以获取到缓存文件大小了。
@caiyoufei 关于缓存时间的问题请看这个#55

from nohttp.

Related Issues (20)

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.