# Effective Kotlin Item 49: Use caching when possible

DevFeed: [Effective Kotlin Item 49: Use caching when possible](<https://devfeed.tech/articles/effective-kotlin-item-49-use-caching-when-possible-39272.md>)

Original publisher: [Read original article](<https://kt.academy/article/ek-caching>)

Published: 2023-11-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Kt. Academy](<https://devfeed.tech/sources/kt-academy.md>)

Topics: [Caching](<https://devfeed.tech/topics/caching.md>), [Back end](<https://devfeed.tech/topics/backend.md>), [Android](<https://devfeed.tech/topics/android.md>), [Kotlin](<https://devfeed.tech/topics/kotlin.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [backend](<https://devfeed.tech/tags/backend.md>), [caching](<https://devfeed.tech/tags/caching.md>), [effective](<https://devfeed.tech/tags/effective.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [workshop-learning-programming](<https://devfeed.tech/tags/workshop-learning-programming.md>)

## AI overview

This article explains caching as a performance optimization technique. It describes caches as quickly accessible redundant copies of data, demonstrates caching repeated user lookups, and discusses stale data and time-based expiration, with different considerations for backend and Android applications.

## Source excerpt

Why we should use caching and how to do it.