Skip to content

[CLI]: dab update Cache Settings #1919

Open
@seantleonard

Description

@seantleonard

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 to 5
  • enabled defaults to false

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions