Azure Cache for Redis client for .NET 6.0.
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");