Deploy and configure Redis on your HCL Commerce Developer Legacy environment to test
HCL Cache caching and cache invalidation.
If your HCL Commerce development environment also includes a HCL Commerce Developer Search environment with the full Elasticsearch solution, then Redis is already
installed. Otherwise, you can install and start it locally.
Procedure
- Optional:
Redis can be deployed in an HCL Commerce development environment using the automated Docker
Compose deployment method.
-
Deploy Redis manually.
docker run --name redis -e ALLOW_EMPTY_PASSWORD=yes -p 6379:6379 bitnami/redis:latest
-
Update your HCL Commerce Developer environment configuration.
- Open the
WCDE_installdir/setup/hcl-cache/redis/singleserver/redis_cfg.yaml
Redis configuration file for editing.
- Update the Redis hostname and port number in the address field.
- Save and close the file.
- Optional:
Start the HCL Commerce Cache Manager application.
Results
HCL Cache is configured on your HCL Commerce Developer Legacy environment. You can now configure and test caching and caching
invalidation.