Azure Cache for Redis samples

This repository contains samples that demonstrate best practices and general recommendations to communicate with Azure Redis Cache Service caches from various Redis client frameworks. To find out more about the Azure Cache for Redis service, please visit the documentation site.

Get the samples

  • The easiest way to use these samples without using Git is to download the current version as a ZIP file.

    • On Windows, before you unzip the archive, right-click it, select Properties, and then select Unblock.
    • Be sure to unzip the entire archive and not just individual samples.
  • Alternatively, clone this sample repository using a Git client.

Build and run the samples

Please see the description of each individual sample for instructions on how to build and run it.

Azure Cache for Redis quickstarts

The following quickstarts demonstrate how to incorporate Azure Cache for Redis into an app. If you want to create one of the quickstart apps from scratch, please follow the corresponding article on the documentation site.

Quickstart Platform Description
Quickstart ASP.NET for Windows Windows Learn how to use an ASP.NET web application to connect to Azure Cache for Redis to store and retrieve data from the cache.
Quickstart ASP.NET Core Windows, Linux, macOS Learn how to use an ASP.NET Core web application to connect to Azure Cache for Redis to store and retrieve data from the cache.
Quickstart C# .NET for Windows Windows Learn how to incorporate Azure Cache for Redis into a C# .NET Framework console app using the StackExchange.Redis Redis client.
Quickstart C# .NET Core Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a C# .NET Core console app using the StackExchange.Redis Redis client.
Quickstart Java Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a Java app using the Jedis Redis client.
Quickstart Node.js Node.js Learn how to incorporate Azure Cache for Redis into a Node.js app.
Quickstart Python Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a Python app.
Quickstart Rust Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a Rust app.
Quickstart Go Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a Go app.

Samples

Sample Platform Description
Basic, cluster, and pool connections in Java console app with Jedis and Lettuce Windows, Linux, macOS Learn the general approaches for using Jedis's JedisCluster and JedisPool and Lettuce's RedisClient and ConnectionPoolSupport.

Resources