Skip to content

A Redis client library that incorporates best practices for Azure Cache for Redis.

License

Notifications You must be signed in to change notification settings

DanielLarsenNZ/AzureCacheRedisClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Cache for Redis Client

Azure Cache for Redis client for .NET 6.0.

Getting started

For a more detailed example see RedisCacheTests.cs.

var cache = new RedisCache(connectionString);

var item = new TestItem { Name = "foo", Value = "bar" };

// Set cache item
await cache.Set("foobar1", item, TimeSpan.FromSeconds(90));

// Get cached item
var cachedItem = await cache.Get<TestItem>("foobar1");

// Deletes a specified key from the cache.
await cache.Delete("foobar1");

About

A Redis client library that incorporates best practices for Azure Cache for Redis.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages