Skip to content

Cache ECA: write

Plugin ID: eca_cache_write

Available since: 2.0.0

Write a value item into ECA cache.

Fields

Cache item value — config key: value

The value to cache.
This field supports tokens.

Type: textarea · Required: no · Default: empty string

Interpret above config value as YAML format — config key: use_yaml

Nested data can be set using YAML format, for example mykey: myvalue. When using this format, this option needs to be enabled. When using tokens and YAML altogether, make sure that tokens are wrapped as a string. Example: title: "[node:title]"

Type: checkbox · Required: no · Default: false

Validate YAML to prevent this from being executed when invalid — config key: validate_yaml

Type: checkbox · Required: no · Default: false

Expiration time — config key: expire

The timestamp in seconds when the cached item expires. Set to -1 for unlimited lifetime.
This field supports tokens.

Type: number · Required: yes · Default: -1

Cache tags — config key: tags

Optionally add cache tags for fine-granular cache invalidation. Separate multiple tags with commas. More information about cache tags can be found in the documentation.
This field supports tokens.

Type: textarea · Required: no · Default: empty string

Cache backend — config key: backend


When using the "Defined by token" option, make sure there is a token with this name: eca_cache_write_backend

Type: select · Required: yes · Default: eca_default

Allowed values: eca_default, eca_memory, eca_chained, _eca_token

The following cache backends are available:

  • default shared cache
  • runtime in-memory cache
  • chained cache (in-memory plus shared)
Cache key — config key: key

The cache key is a unique machine name and identifies the cache item.
This field supports tokens.

Type: textfield · Required: yes · Default: empty string