Setting up Redis external attribute caching with dsconfig
Before you begin
When using the dsconfig set-policy-decision-service-prop command, the new configuration must still be compliant with the following:
-
The
pdp-modeproperty must be set toembedded. -
The
deployment-package-source-typeproperty must be set tostoreorstatic-file.-
If the
deployment-package-source-typeproperty is set tostore, thedeployment-package-storeproperty must resolve to a valid deployment package store. -
If the
deployment-package-source-typeproperty is set tostatic-file, thedeployment-package-storeproperty must resolve to a valid deployment package.
-
About this task
Here are the configuration options available for creating Redis external caches using the dsconfig tool. When using the dsconfig create-external-attribute-cache command, the new configuration must still be compliant with the required attributes associated with the specified cache type:
| Option | Description |
|---|---|
|
Required. Specifies Redis mode. Accepted values: |
|
Required, only when |
|
Required, only when |
|
Required, only when |
|
Optional, only when |
|
Optional, only when |
|
Optional, only when |
|
Optional, only when AUTH token authentication is enabled in the Redis provider. |
|
Optional, only when AUTH token authentication is enabled in the Redis provider. |
Steps
-
Create the external attribute cache using the
dsconfig create-external-attribute-cachecommand. For example:Example:
$ dsconfig create-external-attribute-cache \ --cache-name 'Single Instance' \ --type redis-single-instance \ --set redis-node-addresses:redis://localhost:6379 -
Assign the defined external attribute cache to the Policy Decision Service. For example:
Example:
$ dsconfig set-policy-decision-service-prop \ --set 'external-attribute-cache:Single Instance'
Result
Your external attribute cache has been defined and attached to the Policy Decision Service. There is no need to restart the server.