java.lang.Object | |
↳ | com.facebook.imagepipeline.cache.SmallCacheIfRequestedDiskCachePolicy |
Task factory for the simple disk cache case of attempting to load the image from whichever cache is requested by the image request.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SmallCacheIfRequestedDiskCachePolicy(BufferedDiskCache defaultBufferedDiskCache, BufferedDiskCache smallImageBufferedDiskCache, CacheKeyFactory cacheKeyFactory) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Task<EncodedImage> |
createAndStartCacheReadTask(ImageRequest imageRequest, Object callerContext, AtomicBoolean isCancelled)
Creates and starts the task to carry out a disk cache read, using whichever caches and keys are
appropriate for this policy.
| ||||||||||
ImageRequest.CacheChoice |
getCacheChoiceForResult(ImageRequest imageRequest, EncodedImage encodedImage)
Determines the cache in which to store the provided image.
| ||||||||||
void |
writeToCache(EncodedImage newResult, ImageRequest imageRequest, Object callerContext)
Writes the new image data to whichever cache and with whichever key is appropriate for this
policy.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates and starts the task to carry out a disk cache read, using whichever caches and keys are appropriate for this policy.
Determines the cache in which to store the provided image.
imageRequest | request which resulted in loading the image |
---|---|
encodedImage | the image to store in cache |
Writes the new image data to whichever cache and with whichever key is appropriate for this policy.