Skip to content

mholland/Badger.Redis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Badger.Redis

Still in early development so don't use for anything that matters

A simple .NET client for Redis

  • Pooled connections
  • Asynchronous programming interface

Current functionality

  • Establish connections to a single Redis server
  • Send PING requests

Basics

  1. Create a connection pool on application startup
  2. Get a connection from the pool
  3. Use the connection
  4. Return the connection to the pool
  5. Dispose the connection pool on application shutdown
var config = new Configuration { Host = "127.0.0.1", Port = 6379 };

using (var pool = new ConnectionPool(config))
using (var connection = await pool.GetConnectionAsync())
{
    await connection.PingAsync(CancellationToken.None);
}

About

A simple .NET client for Redis

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%