RavenDB

RavenDB is a high performance document database. Both local and cloud instances/clusters are supported. Redakt CMS offers RavenDB integration through a NuGet package.

Installation

Install the package with the NuGet package manager or the Package Manager Console.

PM> Install-Package Redakt.Data.RavenDB

Register RavenDB services in the ConfigureServices method in your project's Startup.cs file.

public void ConfigureServices(IServiceCollection services)
{
    // ... framework and other services here

    services.AddRedakt(this.Configuration, builder =>
    {
        builder.AddRavenDbDataStore();
        // ... other Redakt services
    });
}

Configuration

The RavenDB data store is configured through the appsettings.json file. Any configuration that is not included in the appsettings.json file will be set to its following default values.

{
    "Redakt": {
        "DataStore": {
            "RavenDB": {
                "DocumentStoreUrl": "",
                "Database": ""
            }
        }
    }
}

Document Store Url

Required. Sets the url to the RavenDB instance/cluster in URI format.

Database

Required. Sets the RavenDB database name. A RavenDB database is not automatically created by Redakt CMS, therefore a database has to exist before starting Redakt CMS installation.