Skip to main content

Module store_get

Module store_get 

Source
Expand description

store-get — reads a key from a named store into context.message.

A missing key is not an error: it exits the dedicated miss outcome port, which the compiler forces the policy to wire. A store outage exits error instead — conflating the two would make a redis failure look exactly like “nothing recorded”, and a policy would take its happy path during precisely the incident where that is most wrong.

Structs§

StoreGetPlugin

Functions§

flatten_into 🔒
Writes value into message under name.
parse_json_flag 🔒
Parses the optional json flag, which defaults to false. A present but wrong-typed value is a config error, the same treatment by and ttl_seconds already get – silently ignoring, say, json: "true" would be the only config key in this node’s set that fails that way.