Package 

Class DefaultCacheKeyFactory

    • Method Detail

      • getEncodedCacheKey

         CacheKey getEncodedCacheKey(ImageRequest request, @Nullable() Object callerContext)

        Creates a key to be used in the encoded memory and disk caches.

        Implementations must return consistent values for the same request or else caches will notwork efficiently.

        Parameters:
        request - the image request to be cached or queried from cache
        callerContext - included for optional debugging or logging purposes only
      • getEncodedCacheKey

         CacheKey getEncodedCacheKey(ImageRequest request, Uri sourceUri, @Nullable() Object callerContext)

        Creates a key to be used in the encoded memory and disk caches.

        This version of the method receives a specific URI which may differ from the one held by therequest. You should not consider the URI in the request.

        Implementations must return consistent values for the same request or else caches will notwork efficiently.

        Parameters:
        request - the image request to be cached or queried from cache
        sourceUri - the URI to use for the key, which may override the one held in the request
        callerContext - included for optional debugging or logging purposes only