---
title: "Caches"
description: "Learn more about cache monitoring with Sentry and how it can help improve your application's performance."
url: https://docs.sentry.io/product/insights/backend/caches/
---

# Caches

A cache can be used to speed up data retrieval, thereby improving application performance. A cache stores data temporarily to speed up subsequent access to that data. This allows your application to get data from cached memory (if it is available) instead having to download that data again or retrieving it from a potentially slow data layer. Caching can speed up read-heavy workloads for applications like Q\&A portals, gaming, media sharing, and social networking.

A successful cache results in a high hit rate which means the data was present when fetched. A cache miss occurs when the data fetched was not present in the cache. If you have performance monitoring enabled and your application uses caching, you can see how your caches are performing with Sentry.

Sentry's cache monitoring provides insights into cache utilization and latency so that you can improve the performance of the endpoints that interact with caches.

Starting with the [Cache page](https://sentry.io/orgredirect/organizations/:orgslug/insights/caches/), you get an overview of the transactions within your application that are making at least one lookup against a cache. From there, you can dig into specific cache span operations by clicking a transaction and viewing its sample list.

## [Instrumentation](https://docs.sentry.io/product/insights/backend/caches.md#instrumentation)

Cache monitoring currently supports [auto instrumentation](https://docs.sentry.io/platform-redirect.md?next=%2Ftracing%2Finstrumentation%2Fautomatic-instrumentation) for [Django's cache framework](https://docs.djangoproject.com/en/5.0/topics/cache/) when the [cache\_spans option](https://docs.sentry.io/platforms/python/integrations/django.md#options) is set to `True`. Other frameworks require custom instrumentation.

### [Custom instrumentation](https://docs.sentry.io/product/insights/backend/caches.md#custom-instrumentation)

If available, custom instrumentation is documented on an environment-by-environment basis as listed below:

* [Python SDK](https://docs.sentry.io/platforms/python/tracing/instrumentation/custom-instrumentation/caches-module.md)
* [JavaScript SDKs](https://docs.sentry.io/platforms/javascript/guides/node/tracing/instrumentation/custom-instrumentation/caches-module.md)
* [PHP SDK](https://docs.sentry.io/platforms/php/tracing/instrumentation/caches-module.md)
* [Java SDK](https://docs.sentry.io/platforms/java/tracing/instrumentation/custom-instrumentation/caches-module.md)
* [Ruby SDK](https://docs.sentry.io/platforms/ruby/tracing/instrumentation/custom-instrumentation/caches-module.md)
* [.NET SDK](https://docs.sentry.io/platforms/dotnet/tracing/instrumentation/custom-instrumentation/caches-module.md)

To see what cache data can be set on spans, see the [Cache Module Developer Specification](https://develop.sentry.dev/sdk/performance/modules/caches/).

## Pages in this section

- [Cache Page](https://docs.sentry.io/product/insights/backend/caches/cache-page.md)
