Set-Config-Cache
Provides a way to set the value of the cache duration of Eclipse MicroProfile configuration properties.
Synopsis
asadmin [asadmin-options] set-config-cache [--help]
[--duration=<duration.in.second>]
[--target=<target[default:server]>]
Description
The set-config-cache sets the value of the cache duration of Eclipse MicroProfile configuration properties in the targeted instances.
|
Tip
|
A value of zero (0) disables caching for MicroProfile configuration properties.
|
Options
asadmin-options:
Options for the asadmin utility. For information about these options, see the asadmin help page.
--help:
-?:
Displays the help text for the subcommand.
--duration:
Duration in seconds properties are cached. Defaults to 60.
--target:
Specifies the target where the configuration source resides.
Valid values are as follows:
server;;
Specifies the DAS (default).
instance-name;;
Specifies a Payara Server instance.
cluster-name;;
Specifies a cluster.
configuration-name;;
Specifies a named configuration.
Example
Example 1 Disable Caching
This example disables caching by setting the duration to 0.
asadmin set-config-cache --duration=0 --target=myAppCluster
Example 2 Sets the caching duration
This example sets the cache TTL (time to live) for configuration properties to 30 seconds.
asadmin> set-config-cache --duration=30 --target=myAppCluster