java.lang.Object | |
↳ | com.facebook.imagepipeline.cache.DefaultCacheKeyFactory |
Known Direct Subclasses |
Default implementation of CacheKeyFactory
.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DefaultCacheKeyFactory() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CacheKey | getBitmapCacheKey(ImageRequest request, Object callerContext) | ||||||||||
CacheKey |
getEncodedCacheKey(ImageRequest request, Object callerContext)
Creates a key to be used in the encoded memory and disk caches.
| ||||||||||
CacheKey |
getEncodedCacheKey(ImageRequest request, Uri sourceUri, Object callerContext)
Creates a key to be used in the encoded memory and disk caches.
| ||||||||||
synchronized static DefaultCacheKeyFactory | getInstance() | ||||||||||
CacheKey | getPostprocessedBitmapCacheKey(ImageRequest request, Object callerContext) |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Uri | getCacheKeySourceUri(Uri sourceUri) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.facebook.imagepipeline.cache.CacheKeyFactory
|
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 not work efficiently.
request | the image request to be cached or queried from cache |
---|---|
callerContext | included for optional debugging or logging purposes only |
CacheKey
for doing encoded image lookups in the pipeline.
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 the request. You should not consider the URI in the request.
Implementations must return consistent values for the same request or else caches will not work efficiently.
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 |
CacheKey
for doing encoded image lookups in the pipeline.