Configuring Redis Caching
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.configa. From caching container uncomment “RedisCachingService” and comment other providers
- Open web.config
- Comment the InProc session state
- Uncomment the commented lines to enable session state provider
- Replace your host, password and port
<!--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