java.lang.Object | |
↳ | com.facebook.imagepipeline.cache.SplitCachesByImageSizeDiskCachePolicy |
Task factory to attempt to load an image from either the main or small disk cache and then fallback to the other if the first attempt was unsuccessful.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SplitCachesByImageSizeDiskCachePolicy(BufferedDiskCache defaultBufferedDiskCache, BufferedDiskCache smallImageBufferedDiskCache, CacheKeyFactory cacheKeyFactory, int forceSmallCacheThresholdBytes) |
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.
| ||||||||||
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.
Writes the new image data to whichever cache and with whichever key is appropriate for this policy.