Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bugthesystem/aspnetwebapi-outputcache-redis

Redis cache for AspNetWebApi-OutputCache
https://github.com/bugthesystem/aspnetwebapi-outputcache-redis

asp-net asp-net-web-api nuget outputcache redis

Last synced: 3 months ago
JSON representation

Redis cache for AspNetWebApi-OutputCache

Awesome Lists containing this project

README

        

# ASP.NET Web API CacheOutput - Redis

Redis `provider` for AspNetWebApi-OutputCache
Implementation of IApiOutputCache for Redis

## Sample

You can register your implementation using a handy GlobalConfiguration extension method:

```csharp
var _connectionSettings = new RedisConnectionSettings { ConnectionString = "localhost:6379", Db = 2 };
var mycache = new RedisOutputCache(new JsonSerializer(), _connectionSettings);

//instance
configuration.CacheOutputConfiguration().RegisterCacheOutputProvider(() => mycache);
```

For more information;
https://github.com/filipw/Strathweb.CacheOutput#server-side-caching

### License
MIT