mirror of
https://github.com/jwetzell/showbridge-docs.git
synced 2026-08-13 17:43:39 +00:00
27 lines
621 B
Plaintext
27 lines
621 B
Plaintext
---
|
|
title: Set Key/Value
|
|
sidebar:
|
|
label: Set
|
|
order: 2
|
|
---
|
|
|
|
The `kv.set` processor sets the value associated with a key from a module that implements the `KeyValueModule` interface. The payload is unchanged so whatever is received by this payload is output unless any errors are encountered.
|
|
|
|
- **type**: `kv.set`
|
|
- **params**:
|
|
- **module**: id of the module
|
|
- **key**: the key to look up
|
|
- **value**: the value to set
|
|
|
|
### Example
|
|
|
|
This will attempt to set the key `hello` to `world` using the module with an id of `redis`
|
|
|
|
```yaml
|
|
- type: kv.set
|
|
params:
|
|
module: redis
|
|
key: hello
|
|
value: world
|
|
```
|