# Azure Cache for Redis

Azure Cache for Redis is a managed Redis service that provides shared, low-latency data storage for application caching, sessions, and coordination.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/azure-cache-for-redis

> Azure Cache for Redis hosts dedicated Redis instances and manages their infrastructure, maintenance, and tier-dependent availability capabilities. Applications use Redis clients to cache database results, share session state, and work with in-memory data structures. All tiers have announced retirement timelines, so existing deployments should plan migration to Azure Managed Redis.

## 9 key features of Azure Cache for Redis

1. **Managed Redis infrastructure**: Microsoft operates the Redis hosting infrastructure and manages service maintenance. Engineers still own client configuration, key design, capacity planning, and application behavior during maintenance or failover.
2. **Redis data structures and atomic operations**: Use strings, hashes, lists, sets, and sorted sets for shared application state. Atomic commands such as INCR support counters without an application-side read-modify-write race; Redis transactions do not provide relational-style rollback.
3. **Expiration and memory eviction**: Assign time-to-live values to individual keys and configure an appropriate eviction policy. Monitor evictions separately from expirations, because memory-driven eviction can remove entries earlier than the application expects.
4. **Replication and availability zones**: Standard and higher tiers provide replicated configurations with failover capabilities. Zone redundancy is available in supported regions and configurations, but applications must tolerate reconnections and potential loss of recently written data.
5. **Scaling and clustering**: Increase cache size to obtain more capacity and associated compute or network resources, or use supported clustering configurations to partition data. Clustered applications need compatible clients, and multi-key operations must respect hash-slot restrictions.
6. **Tier-dependent persistence and geo-replication**: Premium and Enterprise configurations offer persistence options to improve recovery after failures. Geo-replication capabilities differ by tier, including passive replication in Premium and active geo-replication in supported Enterprise configurations; validate recovery procedures and consistency behavior.
7. **Private connectivity and identity-based access**: Use Azure Private Link to access supported deployments through private endpoints and configure DNS resolution for application networks. Basic, Standard, and Premium support Microsoft Entra authentication and can disable access-key authentication after clients have migrated.
8. **Enterprise modules**: Enterprise tiers support modules such as RediSearch, RedisJSON, RedisBloom, and RedisTimeSeries. Confirm module availability and compatibility for the selected configuration and migration target before relying on module-specific commands.
9. **Monitoring and connection auditing**: Azure Monitor exposes operational metrics, and diagnostic settings support connection auditing. Combine service metrics with application traces to distinguish cache saturation, network delays, authentication failures, and client-side bottlenecks.

## Where Azure Cache for Redis is used

1. **Database query caching**: Cache frequently requested Azure SQL Database or Azure Cosmos DB results using cache-aside. Set explicit expiration and invalidation rules, and ensure the database can handle cache misses or a controlled cache rebuild.
2. **Shared web session state**: Store session data centrally so requests can move between application instances without relying on instance-local memory. Align key expiration with session policy and define what users experience if session data is evicted or lost.
3. **Rendered content and computed-result caching**: Reuse expensive page fragments, API responses, or computed results across application instances. Include tenant, locale, authorization scope, and relevant input versions in cache keys to prevent serving the wrong content.
4. **Rate limiting and short-lived counters**: Use atomic increments and expiration to track request quotas or temporary activity counts. Implement the increment-and-expiration sequence atomically where required, and choose an explicit fail-open or fail-closed policy for cache outages.
5. **Real-time rankings and membership checks**: Use sorted sets for leaderboards and sets for fast membership checks. Keep an authoritative record elsewhere when the application must reconstruct rankings or memberships after data loss.
6. **Lightweight messaging and task coordination**: Use Redis pub/sub for transient notifications or lists and streams for application-managed work distribution. Pub/sub does not retain messages for disconnected consumers; use Azure Service Bus when durable broker features and managed delivery guarantees are required.

## How Azure Cache for Redis is priced

- **Basic provisioned capacity**: Billed for the selected cache size while provisioned, rather than per cache operation. The single-node design has no availability SLA and is intended for development, testing, or noncritical workloads.
- **Standard provisioned capacity**: Billed according to the selected replicated cache size. Choose capacity using measured memory consumption, throughput, and connection requirements rather than stored value size alone.
- **Premium provisioned capacity and shards**: Charges depend on the selected Premium size and deployed shard configuration. Additional shards increase provisioned capacity and cost; persistence storage and related resources can add charges.
- **Enterprise and Enterprise Flash capacity**: Costs reflect the selected Enterprise SKU and deployed capacity, with Redis Enterprise software licensing obtained through Azure Marketplace. Marketplace purchasing eligibility is required; these tiers are retiring, and new creation requests are blocked starting April 1, 2026.
- **Associated resource and migration costs**: Budget separately for applicable private endpoints, storage, monitoring ingestion, and network transfer. Parallel operation of the old cache and Azure Managed Redis during validation or migration incurs charges for both resources.

## Services Azure Cache for Redis works with

A typical architecture places application compute in Azure App Service, Azure Functions, or Azure Kubernetes Service, with Redis serving as a shared cache in front of Azure SQL Database or Azure Cosmos DB. Application code implements cache-aside, expiration, and invalidation; deploying these services together does not establish automatic data synchronization. Keep the database authoritative and control concurrent reloads so a cold cache does not overwhelm the backend.

For private architectures, connect application networks to a cache private endpoint and configure private DNS resolution. App Service and Functions require suitable outbound network integration, while AKS requires compatible routing and DNS. Where supported, managed identities and Microsoft Entra authentication remove the need to distribute cache access keys, but clients must support token refresh for long-lived connections.

Use Azure Monitor and application telemetry together to investigate latency, evictions, and connection pressure. Plan migration to Azure Managed Redis as a separate architecture change: validate commands, modules, clustering, identity, and network paths before production cutover. Supported DNS migration tooling can reduce endpoint changes, but it does not replace workload testing, recovery planning, or validation of retained data.

- **[App Service](https://blowstack.com/tools/cloud-services-hub/app-service)**: App Service applications connect through Redis client libraries or framework caching providers to share cached data and session state. For example, an ASP.NET Core application can use a Redis-backed IDistributedCache so requests handled by different instances read the same session data. For private access, configure App Service VNet integration and private endpoint DNS resolution; on supported cache tiers, use a managed identity with the required data-access policy.
- **[Azure Functions](https://blowstack.com/tools/cloud-services-hub/azure-functions)**: Functions can access Redis through client libraries, and Azure Functions also provides Redis-specific bindings and triggers. For example, an HTTP-triggered function can cache a frequently requested reference-data response with a short expiration. Reuse connections across invocations, check binding and authentication support, and verify that the hosting plan supports the required private-network connectivity.
- **[Azure SQL Database](https://blowstack.com/tools/cloud-services-hub/azure-sql-database)**: Applications commonly place Redis in front of Azure SQL Database using cache-aside; the cache is not an automatically synchronized SQL replica. For example, an API can cache a product lookup and invalidate its key after a successful SQL update. Design for stale reads and limit concurrent database reloads when a popular key expires.
- **[Azure Cosmos DB](https://blowstack.com/tools/cloud-services-hub/azure-cosmos-db)**: Applications can cache frequently accessed Cosmos DB items or query results to reduce repeated database requests. For example, a customer-profile API can cache a profile by tenant and customer identifier, then invalidate the entry when the profile changes. A change-feed processor can perform invalidation, but processing delays mean the cache remains eventually consistent.
- **[Azure Kubernetes Service (AKS)](https://blowstack.com/tools/cloud-services-hub/azure-kubernetes-service-(aks))**: AKS-hosted services can share a managed Redis cache without operating Redis pods themselves. For example, multiple checkout-service replicas can use the same short-lived cart cache through a private endpoint. Configure cluster DNS and routing, reuse client connections within each process, and account for connection growth as pods scale.
- **[Azure Monitor](https://blowstack.com/tools/cloud-services-hub/azure-monitor)**: Use Azure Monitor metrics and diagnostic settings to observe cache behavior and send supported logs to Log Analytics. For example, alert on sustained memory pressure or evictions and correlate the incident with API latency and database traffic. Track application-level cache-hit rates separately when the service metrics do not capture the business-level behavior being measured.
- **[Azure Managed Redis](https://blowstack.com/tools/cloud-services-hub/azure-managed-redis)**: Azure Managed Redis is the migration destination for retiring Azure Cache for Redis deployments. For example, an existing Premium cache can move to a compatible Managed Redis configuration after testing client behavior, authentication, and clustering. Built-in DNS migration tooling supports redirecting an existing Basic, Standard, or Premium cache hostname to an existing Managed Redis instance while preserving the hostname and access key, with data-retention support; validate eligibility and cutover prerequisites.
- **[API Management](https://blowstack.com/tools/cloud-services-hub/api-management)**: Azure Cache for Redis can serve as the external cache for API Management. API Management caching policies can use it to store and retrieve backend responses or individual values.
- **[Azure Advisor](https://blowstack.com/tools/cloud-services-hub/azure-advisor)**: Azure Advisor surfaces retirement recommendations for affected Azure Cache for Redis instances so their owners can identify which caches need to move to Azure Managed Redis.
- **[Azure App Testing](https://blowstack.com/tools/cloud-services-hub/azure-app-testing)**: Azure Cache for Redis can be added as an application component in Azure Load Testing. A test run can show cache metrics, such as server load and cache hits, alongside request latency and throughput.
- **[Azure Blob Storage](https://blowstack.com/tools/cloud-services-hub/azure-blob-storage)**: Supported Azure Cache for Redis tiers can export Redis snapshots to Blob Storage and import them into another cache. Premium caches can also use a storage account for Redis persistence.
- **[Azure Chaos Studio](https://blowstack.com/tools/cloud-services-hub/azure-chaos-studio)**: Azure Cache for Redis supports a reboot fault in Azure Chaos Studio. A chaos experiment can reboot a cache node to test whether clients reconnect and recover as expected.
- **[Azure Container Apps](https://blowstack.com/tools/cloud-services-hub/azure-container-apps)**: Azure Cache for Redis can back the managed Dapr components in Azure Container Apps. A container app can use a Dapr Redis component to persist application state or exchange pub/sub messages.
- **[Azure Disk Storage](https://blowstack.com/tools/cloud-services-hub/azure-disk-storage)**: When data persistence is enabled on Enterprise or Enterprise Flash caches, Azure Cache for Redis persists data to a managed disk attached to the cache. The service manages the disk, and it is not exposed as a customer-managed volume.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: Azure Cache for Redis uses Azure Private DNS zones to resolve cache hostnames to private endpoint IP addresses. For example, Basic, Standard, and Premium caches use the `privatelink.redis.cache.windows.net` private DNS zone.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: On supported Enterprise tiers, Azure Cache for Redis can use a customer-managed key in Azure Key Vault to encrypt data at rest. The cache uses a managed identity to access the key.
- **[Azure Marketplace](https://blowstack.com/tools/cloud-services-hub/azure-marketplace)**: Provisioning an Enterprise or Enterprise Flash cache includes accepting the Redis Enterprise offer terms through Azure Marketplace.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Azure Policy has built-in definitions for Azure Cache for Redis that can audit settings such as public network access and secure connections. These policies help identify caches that don't meet a subscription's security requirements.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Azure Cache for Redis has dedicated management pages in the Azure portal. They expose cache-specific operations such as scaling, configuring Redis settings, and importing or exporting data on supported tiers.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: Azure Cache for Redis can expose a private endpoint with an IP address in a virtual network. Clients can connect through that endpoint while public network access to the cache is disabled.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Azure Resource Manager provisions Azure Cache for Redis through the `Microsoft.Cache/redis` and `Microsoft.Cache/redisEnterprise` resource types. A template can declare the cache tier, capacity, and supported settings.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Azure Cache for Redis uses Azure RBAC to authorize management operations at the cache, resource group, or subscription scope. These permissions are separate from access to Redis data and commands.
- **[Azure Service Health](https://blowstack.com/tools/cloud-services-hub/azure-service-health)**: Azure Cache for Redis instances report availability through Resource Health. Operators can check an affected cache's health history to see whether Azure recorded a platform issue.
- **[Azure Spring Apps](https://blowstack.com/tools/cloud-services-hub/azure-spring-apps)**: Azure Cache for Redis is a supported Service Connector target for Azure Spring Apps. The connector can supply Redis connection properties to a Spring Boot app so the endpoint and credentials don't need to be hard-coded.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Premium Azure Cache for Redis instances support virtual network injection, which places the cache in a dedicated subnet. Supported tiers can also provide private access from a virtual network through a private endpoint.
- **[Event Grid](https://blowstack.com/tools/cloud-services-hub/event-grid)**: Azure Cache for Redis publishes management events to Event Grid, including completed scaling, patching, and snapshot import or export operations. An Event Grid subscription can route selected events to a handler.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Azure Cache for Redis diagnostic settings can stream supported resource logs and metrics to Event Hubs. Consumers can process that telemetry without polling the cache resource.
- **[Logic Apps](https://blowstack.com/tools/cloud-services-hub/logic-apps)**: Azure Cache for Redis management events can start a Logic Apps workflow through its Event Grid trigger. For example, a workflow can notify operators when a cache finishes scaling.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Microsoft Defender for Cloud evaluates Azure Cache for Redis configuration through security posture assessments. It can flag caches that allow public network access and recommend disabling it.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: On supported tiers, Azure Cache for Redis accepts Microsoft Entra access tokens from identities such as application managed identities. Cache data access policies determine which Redis commands an authenticated identity can run.

## What is Azure Cache for Redis

Azure Cache for Redis provides a network-accessible data store for applications that need fast access to frequently used information. Microsoft operates the underlying infrastructure, while engineers configure capacity, connectivity, authentication, and application caching behavior. Basic, Standard, and Premium use open-source Redis; Enterprise and Enterprise Flash use Redis Enterprise. Applications connect through Redis client libraries, but should validate command, module, and clustering compatibility rather than assuming unrestricted access to every Redis capability.

The service is retiring. Basic, Standard, and Premium retire on September 30, 2028, and instances that have not migrated will be shut down. Enterprise and Enterprise Flash retire on March 31, 2027; new creation requests are blocked starting April 1, 2026. Remaining Enterprise instances are scheduled for automatic migration after April 1, 2027, but engineering teams should plan and validate their own migration rather than depend on an automatic transition. Azure Managed Redis is the recommended destination for existing workloads and the starting point for new Redis deployments.

A common application design uses cache-aside. The application checks Redis for a key, reads the authoritative database on a miss, and stores the result with an expiration time. Database writes must also invalidate or refresh affected cache entries. Choose expiration periods according to acceptable staleness, add expiration jitter to reduce synchronized misses, and protect frequently requested keys against concurrent reloads. Redis does not automatically synchronize arbitrary database changes into cached values.

Capacity planning must account for serialized values, key overhead, fragmentation, connection overhead, and memory reserved for replication or persistence. An eviction policy determines what happens when usable memory fills; it does not replace an application-level expiration strategy. Test realistic value sizes and command mixes, because network bandwidth, server load, and expensive commands can limit throughput before memory is exhausted. Reuse client connections and configure bounded timeouts, reconnection behavior, and retry policies.

Availability and durability depend on the tier and configuration. Basic has a single node and no availability SLA. Replicated tiers provide failover, and supported configurations can distribute replicas across availability zones. Replication is not a guarantee against data loss. Persistence on supported Premium and Enterprise configurations can improve recoverability, but a cache should not become the only copy of critical business data without a deliberate durability design.

Use TLS, restrict network access, and prefer private endpoints where appropriate. Basic, Standard, and Premium support Microsoft Entra authentication, including managed identities and disabling access-key authentication. Monitor memory usage, evictions, connection counts, server load, and latency alongside application cache-hit rates. During migration, test authentication, command compatibility, clustering, and failure recovery. Built-in DNS migration tooling supports redirecting an existing Basic, Standard, or Premium hostname to an existing Azure Managed Redis instance while retaining the hostname and access key, with data-retention support; validate its prerequisites before cutover.
