RethinkDB.DistributedCache/src/RethinkDB.DistributedCache/README.md

1.0 KiB

RethinkDB.DistributedCache

This package provides an ASP.NET Core cache implementation backed by RethinkDB.

Quick Start

C#

using RethinkDB.DistributedCache;

IConnection conn = yourRethinkDBConnection; // set up connection first
 
// within ASP.NET Core service configuration
builder.Services.AddDistributedRethinkDBCache(opts => opts.Connection = conn);

// it will be used by other processes, such as sessions

F#

open RethinkDB.DistributedCache

let conn = yourRethinkDBConnection // set up connection first

// within ASP.NET Core service configuration
let _ = builder.Services.AddDistributedRethinkDBCache(fun opts ->
    opts.Connection <- conn)

// it will be used by other processes, such as sessions

More Information

More information and details can be found at the project site.