- Pooled connections
- Asynchronous programming interface
- Establish connections to a single Redis server
- Send PING requests
- Create a connection pool on application startup
- Get a connection from the pool
- Use the connection
- Return the connection to the pool
- 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);
}