Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daniellarsennz/azurecacheredisclient
A Redis client library that incorporates best practices for Azure Cache for Redis.
https://github.com/daniellarsennz/azurecacheredisclient
azure azure-cache-redis microsoft redis redis-client
Last synced: about 5 hours ago
JSON representation
A Redis client library that incorporates best practices for Azure Cache for Redis.
- Host: GitHub
- URL: https://github.com/daniellarsennz/azurecacheredisclient
- Owner: DanielLarsenNZ
- License: mit
- Created: 2022-03-02T03:40:30.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-01T08:31:48.000Z (almost 3 years ago)
- Last Synced: 2024-04-28T02:37:52.564Z (10 months ago)
- Topics: azure, azure-cache-redis, microsoft, redis, redis-client
- Language: C#
- Homepage:
- Size: 58.6 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Azure Cache for Redis Client
Azure Cache for Redis client for .NET 6.0.
## Getting started
> For a more detailed example see [RedisCacheTests.cs](src\AzureCacheRedisClientTests\RedisCacheTests.cs).
```csharp
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("foobar1");// Deletes a specified key from the cache.
await cache.Delete("foobar1");
```