类 NoCache

java.lang.Object
com.android.volley.toolbox.NoCache
所有已实现的接口:
Cache

public class NoCache extends Object implements Cache
A cache that doesn't.
  • 构造器详细资料

    • NoCache

      public NoCache()
  • 方法详细资料

    • clear

      public void clear()
      从接口复制的说明: Cache
      Empties the cache.
      指定者:
      clear 在接口中 Cache
    • get

      public Cache.Entry get(String key)
      从接口复制的说明: Cache
      Retrieves an entry from the cache.
      指定者:
      get 在接口中 Cache
      参数:
      key - Cache key
      返回:
      An Cache.Entry or null in the event of a cache miss
    • put

      public void put(String key, Cache.Entry entry)
      从接口复制的说明: Cache
      Adds or replaces an entry to the cache.
      指定者:
      put 在接口中 Cache
      参数:
      key - Cache key
      entry - Data to store and metadata for cache coherency, TTL, etc.
    • invalidate

      public void invalidate(String key, boolean fullExpire)
      从接口复制的说明: Cache
      Invalidates an entry in the cache.
      指定者:
      invalidate 在接口中 Cache
      参数:
      key - Cache key
      fullExpire - True to fully expire the entry, false to soft expire
    • remove

      public void remove(String key)
      从接口复制的说明: Cache
      Removes an entry from the cache.
      指定者:
      remove 在接口中 Cache
      参数:
      key - Cache key
    • initialize

      public void initialize()
      从接口复制的说明: Cache
      Performs any potentially long-running actions needed to initialize the cache; will be called from a worker thread.
      指定者:
      initialize 在接口中 Cache