ServiceStack.Redis

.NET's most popular Redis Client for worlds fastest distributed NoSQL datastore

Fast C# Redis Client with high and low-level typed, string and byte[] clients
Use typed, intuitive apis for simplifying talking to redis:

using var redisManager = new PooledRedisClientManager();
using var redis = redisManager.GetClient();

var redisTodos = redis.As<Todo>();
var todo = new Todo
{
    Id = redisTodos.GetNextSequence(),
    Content = "Learn Redis",
    Order = 1,
};

redisTodos.Store(todo);

Todo savedTodo = redisTodos.GetById(todo.Id);
savedTodo.Done = true;
redisTodos.Store(savedTodo);

"Updated Todo:".Print();
redisTodos.GetAll().ToList().PrintDump();

redisTodos.DeleteById(savedTodo.Id);

"No more Todos:".Print();
redisTodos.GetAll().ToList().PrintDump();
  • Use thread-safe Redis Client Pool
  • Get Redis Client from Pool
  • Create typed Redis client for Todo types
  • Create new TODO item
  • Get next unique id for Todo types
  • Store Todo item in redis
  • Fetch Todo item by id
  • Update item
  • Save Updated Todo item
  • Print dump of all Todo items in redis after update
  • Delete Todo item by id
  • Print dump of all Todo items in redis after delete

API Overview

C# Redis Client API

ServiceStack's Redis Client provides a comprehensive idiomatic typed C# sync & async library API around the NoSQL Redis Datastore.

Including adapters for .NET collection interfaces over redis server-side collections as well as support for Transactions, Pub/Sub, Lua and more.

Perpetual, Royalty-Free, Per-developer Pricing

Unlimited usage, includes 12 months Software Maintenance & Commercial Support

Indie For Individuals, non-profits or organizations with 10 employees or less

$149/developer

  • Unlimited usage
  • 12 months Software Maintenance
  • Support Forums
  • Issue Tracker
  • Named License
  • Order Now

Business For large organizations with more than 10 total employees

$249/developer

  • Unlimited usage
  • 12 months Software Maintenance
  • Support Forums
  • Issue Tracker
  • Floating License
  • Order Now
Multiple License Discounts below are available for all purchases. 30% renewal discount is available if renewed within 90 days after License expiry.
Renewing extends Software Updates and Commercial Support for an additional 12 months.

Multiple Licenses Discount

Qty Discount
5-9 10%
10+ 20%
30+ Ask us about our Site License

Indie Renewal

$105/developer

Business Renewal

$175/developer

Download

NuGet package contains support for both .NET v4.5+ and .NET Standard 2.0 (.NET Core 5/3/2).
Use .Core package if running ASP.NET Core on .NET Framework.