---
title: Configuring Redis Caching
description: Configuring Redis Caching
---

[Community ](https://41730169.hs-sites.com/community)

# [Configuring Redis Caching](https://41730169.hs-sites.com/community/configuring-redis-caching)

 Written by [Luke Shuck](https://41730169.hs-sites.com/community/author/luke-shuck) | Oct 24, 2025 6:10:57 PM

**1. Interchange.settings.config**

Add update the following key <add key="akumina:PrimaryRedisConnection" value="YOUR CONNECTION STRING"/>

OPTIONAL – READONLY CLUSTER CONFIGURATION

<add key="akumina:SecondaryRedisConnection" value="THIS KEY IS NOT REQUIRED FOR PRIMARY ONLY DEPLOYMENT"/>

**2. Unity.config**

a. From caching container uncomment “RedisCachingService” and comment other providers

**3. OPTIONAL STEP – only required if you want to use REDIS Session State provider**

1. Open web.config
2. Comment the InProc session state
3. Uncomment the commented lines to enable session state provider
4. Replace your host, password and port

**4. OPTIONAL STEP The following AppSettings keys in interchange.settings.config are optional**

<!--PartitionKey, all cache will be partitioned by this prefix.-->

<add key="akumina:RedisCachePartitionKey" value="akcache:"/>

<!--RedisTokenCacheExpirationMode, when to expire the cache, possible values are None, Absolute, Sliding-->

<add key="akumina:RedisTokenCacheExpirationMode" value="Never"/>

<!--SecondaryRedisConnectionString, This key is required on clustered configureation. value will be connection string to readonly node-->

<add key="akumina:SecondaryRedisConnectionString" value=""/>

 

**5. OPTIONAL STEP: Configuring Redis as a Token store, open unity.config and change the following**

register typeIRepository" mapTo="AzureTableTokenStore" />

TO

<register IRepository" mapTo="RedisTokenStore" />

**6. If you get timeout error while debugging, you can add “synctimeout=30000” at the end of the connection string. By setting this value you are increasing timeout from 1 sec to 30 sec**

[View full post](https://41730169.hs-sites.com/community/configuring-redis-caching)

```json
{
  "@context" : "http://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Luke Shuck"
  },
  "dateModified" : "2025-10-24T18:10:57.056Z",
  "datePublished" : "2025-10-24T18:10:57Z",
  "headline" : "Configuring Redis Caching",
  "image" : {
    "@type" : "ImageObject",
    "height" : 128,
    "url" : "https://www.akumina.com/download_file/view_inline/74",
    "width" : 128
  },
  "mainEntityOfPage" : "https://41730169.hs-sites.com/community/configuring-redis-caching",
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "height" : 60,
      "url" : "/hs/hsstatic/content_shared_assets/static-1.4092/img/default-amp-logo.png",
      "width" : 60
    },
    "name" : "Community"
  }
}
```