Skip to content

Instantly share code, notes, and snippets.

@tw-Frey
Created July 11, 2018 06:23
Show Gist options
  • Save tw-Frey/63549a50a33e6d1eb9f2fcf31e469a99 to your computer and use it in GitHub Desktop.
Save tw-Frey/63549a50a33e6d1eb9f2fcf31e469a99 to your computer and use it in GitHub Desktop.
Git Cache Strategies
Glide 3.x & 4.x: DiskCacheStrategy.NONE caches nothing
Glide 4.x: DiskCacheStrategy.DATA, Glide 3.x: DiskCacheStrategy.SOURCE caches only the original full-resolution image.
Glide 4.x: DiskCacheStrategy.RESOURCE Glide 3.x: DiskCacheStrategy.RESULT caches only the final image, after reducing the resolution (and possibly transformations) (default behavior of Glide 3.x)
Glide 4.x only: DiskCacheStrategy.AUTOMATIC intelligently chooses a cache strategy based on the resource (default behavior of Glide 4.x)
Glide 3.x & 4.x: DiskCacheStrategy.ALL caches all versions of the image
Further Read:
https://futurestud.io/tutorials/glide-caching-basics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment