Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created January 4, 2026 08:57
Show Gist options
  • Select an option

  • Save skydoves/8153d426f83406688edd1e52a8e1842f to your computer and use it in GitHub Desktop.

Select an option

Save skydoves/8153d426f83406688edd1e52a8e1842f to your computer and use it in GitHub Desktop.
Landscapist: Two-Tier Cache Configuration
val config = LandscapistConfig(
// Memory cache: LRU with 64MB default
memoryCacheSize = 64 * 1024 * 1024L,
// Disk cache: 100MB default, auto-configured on Android
diskCacheSize = 100 * 1024 * 1024L,
// Enable weak references for recently evicted entries
weakReferencesEnabled = true
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment