Memcached Cache

Memcached is a high-performance, distributed memory object caching system. Redakt CMS offers Memcached integration through an optional NuGet package.


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

PM> Install-Package Redakt.Data.Memcached

Register Memcached 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 =>
        // ... other Redakt services


The Memcached cache 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": {
        "ApplicationCache": {
            "Memcached": {
                "ServerHostname": "",
                "ServerPort": 8080,
                "Username": "",
                "Password": "",
                "CacheExpirationSeconds": 300,

Server Hostname

Required. Sets the server hostname for the Memcached service.

Server Port

Sets the server port for the Memcached service. Defaults to 8080 if not set.


Required. Sets the username for the account that is used to connect to the Memcached service.


Required. Sets the password for the account that is used to connect to the Memcached service.

Cache Expiration

Sets the expiration time in seconds before cache items are purged from the cache. Defaults to 300 if not set.