Skip to content

Expirable key value store: write

Available since: 2.0.0

Writes a value to the Drupal expirable key value store by the given key.



The time to live for this item, in seconds.


The collection of the store.

Store key

The key of the value in the store.


The value to store.

Interpret above value as YAML format

Nested data can be set using YAML format, for example mykey: "My value". 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]"

Only if new

If enabled, this only stores the value if the key does not exist yet.