Package 

Class DiskCacheStrategy


  • 
    public abstract class DiskCacheStrategy
    
                        

    Set of available caching strategies for media.

    • Method Detail

      • isDataCacheable

         abstract boolean isDataCacheable(DataSource dataSource)

        Returns true if this request should cache the original unmodified data.

        Parameters:
        dataSource - Indicates where the data was originally retrieved.
      • isResourceCacheable

         abstract boolean isResourceCacheable(boolean isFromAlternateCacheKey, DataSource dataSource, EncodeStrategy encodeStrategy)

        Returns true if this request should cache the final transformed resource.

        Parameters:
        isFromAlternateCacheKey - {@code true} if the resource we've decoded was loaded using analternative, rather than the primary, cache key.
        dataSource - Indicates where the data used to decode the resource was originallyretrieved.
        encodeStrategy - The EncodeStrategy the will use to encode the resource.
      • decodeCachedResource

         abstract boolean decodeCachedResource()

        Returns true if this request should attempt to decode cached resource data.

      • decodeCachedData

         abstract boolean decodeCachedData()

        Returns true if this request should attempt to decode cached source data.