Using Redis to Cache LigeroSmart Information
As of version 6.1.10, LigeroSmart offers the option of Cache with Redis, to facilitate the creation of environments with load balancing and high availability.
To enable Cache, follow these steps:
Upload a Redis server/cluster
If you don't have a Redis cluster, you can start using a Redis container that we make available on docker-compose.yml from LigeroSmart. Just uncomment the lines below:
# Redis cache # Configuration reference on https://docs.ligerosmart.com cache: image: redis:6-buster restart: always
Then, just upload the service with "docker-compose up -d cache“
Configure Cache in LigeroSmart
Access the System Settings, within the administration.
Adjust the following parameters:
Cache::Module: Kernel::System::Cache::Redis
Cache::Redis###DatabaseNumber: 0
Cache::Redis###RedisFast: enable if you want to try the RedisFast perl module instead of Redis
Cache::Redis###Server: cache:6378 or Redis Cluster address
Apply the settings and your system will be using Cache via Redis!