Configure the HCL Commerce Cache Manager application within your HCL Commerce development environment to aid in the control of your caching implementation.
Before you begin
Ensure that Redis is started. 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.docker run --name redis -e ALLOW_EMPTY_PASSWORD=yes -p 6379:6379 bitnami/redis:latest
Procedure
- Optional:
The Cache Manager can be deployed in an HCL Commerce development environment using the Docker Compose deployment method.
-
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.
-
Start the Cache Manager container.
docker run -d --name=cacheManager -e LICENSE=accept -p 40900-40901:40900-40901 -v WCDE_installdir/setup/hcl-cache/redis/singleserver/redis_cfg.yaml:/SETUP/hcl-cache/redis_cfg.yaml -v WCDE_installdir/setup/hcl-cache/cache-manager/cache_cfg-ext.yaml:/SETUP/hcl-cache/cache_cfg-ext.yaml cache-app:version
For
example:
docker run -d --name=cacheManager -e LICENSE=accept -p 40900-40901:40900-40901 -v W:/WCDE_V9/setup/hcl-cache/redis/singleserver/redis_cfg.yaml:/SETUP/hcl-cache/redis_cfg.yaml -v W:/WCDE_V9/setup/hcl-cache/cache-manager/cache_cfg-ext.yaml:/SETUP/hcl-cache/cache_cfg-ext.yaml commerce/cache-app:9.1.11.0
The Cache Manager application starts. Ensure that no errors
are observed.
Results
The Cache Manager application is started in
your local HCL Commerce development environment. You can now open the web console at
https://localhost:40901/openapi/ui/#/, or call the
/cache API. If there are other servers running, you can observe the
list of caches with their size in the output.