Cache Configuration

Stateless and SDO Cache features require distributed cache for storing the user session IDs or table last update timestamp. Therefore, Redis is used as a distributed cache for these two features.

Separate Redis configuration is created specific to Stateless and SDO cache.

Parameter

Sub-Parameter

Default Value

Description

Stateless

enable

false

This property determines whether the stateless feature is enabled or not.

redisKeyExpiresInSec

90

The expiration time for Redis keys is set in seconds. If the expiration time is set to -1, the key persists indefinitely in the database until it is explicitly deleted, flushed, or Redis is restarted.

featureKeyPrefix

stateless

Feature-specific prefix for identifying and managing Redis keys on the server. 

sdo

enable

false

This property determines whether the SDO feature is enabled or not.

redisKeyExpiresInSec

-1

The expiration time for Redis keys is set in seconds. If the expiration time is set to -1, the key persists indefinitely in the database until it is explicitly deleted, flushed, or Redis is restarted.

cacheExpiresInSec

-1

The expiration time for JVM cache(Caffeine) is set in seconds. If the expiration time is set to -1, the cache persists indefinitely until it is flushed.

featureKeyPrefix

sdo

Feature-specific prefix for identifying and managing Redis keys on the server. 

dfa

enableSharedRedis

false

If the feature is enabled, the shared Redis configuration specified in the adv_cache.conf file is used instead of the feature-specific Redis configuration files. For example, in the case of DFA, the Redis server configuration in the dfa-server.properties file is no longer used for Redis setup.

redisKeyExpiresInSec

600

The expiration time for Redis keys is set in seconds. If the expiration time is set to -1, the key persists indefinitely in the database until it is explicitly deleted, flushed, or Redis is restarted.

featureKeyPrefix

dfa

Feature-specific prefix for identifying and managing Redis keys on the server. 

userconfig

enableSharedRedis

false

If the feature is enabled, the shared Redis configuration specified in the adv_cache.conf file is used instead of the feature-specific Redis configuration files. FFor example, in the case of userconfig, the Redis server configuration in the feature.conf file is no longer used for Redis setup.

redisKeyExpiresInSec

600

The expiration time for Redis keys is set in seconds. If the expiration time is set to -1, the key persists indefinitely in the database until it is explicitly deleted, flushed, or Redis is restarted.

featureKeyPrefix

userconfig

Feature-specific prefix for identifying and managing Redis keys on the server. 

instantAlert

enableSharedRedis

false

If the feature is enabled, the shared Redis configuration specified in the adv_cache.conf file is used instead of the feature-specific Redis configuration files. For example, in the case of instantAlert, the Redis server configuration in the dfa-server.properties file is no longer used for Redis setup.

redisKeyExpiresInSec

600

The expiration time for Redis keys is set in seconds. If the expiration time is set to -1, the key persists indefinitely in the database until it is explicitly deleted, flushed, or Redis is restarted.

featureKeyPrefix

instantAlert

Feature-specific prefix for identifying and managing Redis keys on the server. 

redis

connectionType

standalone|cluster

Redis Connection Type (standalone | cluster | sentinal). The system currently supports standalone or cluster type.

tlsEnabled

False

This property determines whether TLS is enabled or not. In cloud environments, tlsEnabled is always set to true.

host

127.0.0.1

Redis host name

port

6379

Port Number for Redis. The default port is 6379. If TLS is enabled, the default port shifts to 6380. However, sites have the flexibility to configure custom ports during setup.

userName

default    

Redis user id. The default user id for redis is ‘default’.

password

Redis server password. Redis setup on cloud must be password protected. 

connectionPoolSize

100

Redis connection pool size

keyPrefix

dev:region:baseline:

Redis Key Prefix for supporting multi-tenancy. Each key will be uniquely identified for various environments such as dev, uat or prod.

connectionTimeOut

20

Connection timeout for Redis in seconds

clientName

CGIADVANTAGE

This is utilized to identify the Redis client when it's configured for multi-tenancy.