Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在凌空抽射中使用软球有什么效果?_Android_Android Volley - Fatal编程技术网

Android 在凌空抽射中使用软球有什么效果?

Android 在凌空抽射中使用软球有什么效果?,android,android-volley,Android,Android Volley,下面是volley中缓存失效的文档。我不清楚软过期会有什么影响?另外,Volley如何更新缓存?它是否仅基于http头?或者缓存项是否有固定的时间 /** * Invalidates an entry in the cache. * @param key Cache key * @param fullExpire True to fully expire the entry, false to soft expire */ public void invali

下面是volley中缓存失效的文档。我不清楚软过期会有什么影响?另外,Volley如何更新缓存?它是否仅基于http头?或者缓存项是否有固定的时间

   /**
   * Invalidates an entry in the cache.
   * @param key Cache key
   * @param fullExpire True to fully expire the entry, false to soft expire
   */
   public void invalidate(String key, boolean fullExpire);

软过期将返回缓存的数据,但在后台将检索新内容,以便下一个请求将使用较新的数据缓存。

我正在尝试使用recyclerview进行分页,当我到达视图末尾时,我希望将新加载的列表添加到缓存中,我已经在获取新列表并将其添加到旧列表的末尾,在LoadMore()上清空缓存并将新获取的项目添加到缓存的最佳方法是什么?