Skip to content

This repository contains samples that demonstrate best practices and general recommendations to communicate with Azure Redis Cache Service caches from various Redis client frameworks.

License

Notifications You must be signed in to change notification settings

Azure-Samples/azure-cache-redis-samples

Repository files navigation

page_type languages name description products
sample
aspx-csharp
csharp
go
java
javascript
nodejs
python
rust
Azure Cache for Redis samples
Learn how to use Azure Cache for Redis to have access to a secure, dedicated cache that is accessible from any application within Azure.
azure
aspnet
aspnet-core
dotnet
azure-cache-redis

Samples repository for Azure Cache for Redis

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 Java Redisson Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a Java app using the Redisson Redis client.
Quickstart Java Redisson JCache Windows, Linux, macOS Learn how to incorporate Azure Cache for Redis into a Java app using the JSR-107 JCache standard support in the Redisson 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

About

This repository contains samples that demonstrate best practices and general recommendations to communicate with Azure Redis Cache Service caches from various Redis client frameworks.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published