public boolean isMemoryCacheEnabled() {
    int mask =
        CachesLocationsMasks.BITMAP_READ
            | CachesLocationsMasks.BITMAP_WRITE
            | CachesLocationsMasks.ENCODED_READ
            | CachesLocationsMasks.ENCODED_WRITE;
    return (mCachesDisabled & mask) == 0;
  }
Returns whether the use of the memory cache is enabled.
imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequestBuilder.java