如何使用排用缓存来支持离线功能?它支持大JSON存储? [英] How to use Volley to support offline feature using cache? Does it support large JSON storage?
本文介绍了如何使用排用缓存来支持离线功能?它支持大JSON存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用的凌空抽射作出服务器调用来获取数据。但现在我想我的应用程序在离线模式下工作了。因此,使用凌空缓存是好主意或没有,以及如何使用它?
它支持大量的JSON数据存储?
I am using volley for making server calls to fetch data. But now I want my application to work in offline mode too. So using volley cache is good idea or not and how to use it ? Does it support large JSon data storage ?
推荐答案
凌空已建立从队列缓存功能对象,你可以通过挑缓存调用.getCache()获得(URL)
Volley has build in cache feature from Queue object you can pick cache by calling .getCache().get(url)
这篇关于如何使用排用缓存来支持离线功能?它支持大JSON存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文