Open
Description
Add capability to modify global and entity level cache settings within the CLI.
cache properties currently take the form:
"cache": {
"ttl-seconds": 12,
"enabled": true
}
ttl-seconds
defaults to5
enabled
defaults tofalse
The model file for cache options has a hidden/non-json exposed property called isUserDefined
. This property automatically captures whether the user explicitly sets ttl-seconds
. If the user doesn't explicitly set a value, DAB uses the configured global cache ttl-seconds
or if global settings aren't explicitly set, uses 5 seoconds. -> for CLI, if user doesn't explicitly set ttl-seconds
DO NOT assume a default value and set. Just pass null.
When user does not define ttl-seconds
the property ttl-seconds
should NOT be written to the output JSON file. That is the behavior now, and shouldn't change.