Interact | cacheManagement | Cache Managers | Redis

The Redis category specifies the parameters for the Redis cache management solution so that you can customize it to improve the performance of Unica Interact.

To enable Redis as the L2 cache for EHCache, change the configuration property Affinium|Interact|partitions|<partitionName>|Cache Management|Cache Managers|EHCache:cacheType to Distributed, and ensure Redis is properly configured.

Internal working of Redis Cache

Note: Unica Interact v12.1.6 does not support Redis authentication method.
Data Retrieval Workflow
  • The client requests the data to EHCache.
  • If data exists in the EHCache then it returns data.
  • Otherwise, EHCache requests the data from Redis.
  • If data exists in the Redis, it returns data.
  • For Event Pattern State cache, if data does not exist in Redis, it loads data from the database using Redis's distributed locking mechanism.
Data Update Workflow
  • The client requests to update data in EHCache.
  • EHCache sends updated data to Redis.
  • After updating data in Redis, it notifies all the EHCache instances (Interact RT instances) to invalidate local data for the key.
Data Persistence Workflow
  • It is specific to the EventPatternState cache.
  • When the scheduled time arrives, the EHCache writer requests to fetch all the data from Redis.
  • The writer persists modified data into the database using Redis distributed locking mechanism.