Start using Redis with ASP.NET
FYI, both the:
- RedisStackOverflow with C# Source Code and
- RedisAdminUI with C# Source Code
are open source ASP.NET web applications that only use the ServiceStack.Redis C# client.
Here is an example of how you would use an Inversion of control (IoC) container to register a Redis client connection pool and its accompanying IRepository
with an IoC:
//Register any dependencies you want injected into your servicescontainer.Register<IRedisClientsManager>(c => new PooledRedisClientManager());container.Register<IRepository>(c => new Repository(c.Resolve<IRedisClientsManager>()));
Note: if you're just starting out with the client, I recommend you go through the C# Client Wiki, Especially the Designing a Simple Blog application with Redis tutorial*.
You can access a Redis instance from C# using the servicestack driver. You can download the code from its GitHub repository.
Recommend You StackExchage.Redis Client Library for ASP.net. Recommended By Microsoft as you see in this MSDN article. it is free and opensource.Also Look at complete List of Redis Clients available: http://redis.io/clients
And for Installing The Redis and using Client in Windows Based Platforms Download And Install Redis Service (Server and Client Tools With Documentaion) Wrote By Microsoft.