defaultImageResultMemoryCache

fun InterceptorsBuilder.defaultImageResultMemoryCache(includeBitmap: Boolean = false, saveSize: Int = 100, valueHashProvider: (ImageResult) -> Int = { it.hashCode() }, valueSizeProvider: (ImageResult) -> Int = { 1 }, mapToMemoryValue: (ImageResult) -> ImageResult? = { when (it) { is ImageResult.OfImage, is ImageResult.OfPainter, -> it is ImageResult.OfBitmap -> if (includeBitmap) it else null is ImageResult.OfSource, is ImageResult.OfError, -> null } }, mapToImageResult: (ImageResult) -> ImageResult? = { it })