SET / SETNX / DEL

SET

SET
SETNX
rhub add:action <group.eventId> <filterId> REDIS SET

Set key to hold the string value. If key already holds a value, it is overwritten, regardless of its type. Source: Redis

rhub add:action <group.eventId> <filterId> REDIS SETNX

Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. SETNX is short for "SET if Not eXists". Source: Redis

YAML

-
id: my-action-id
async: false
type: REDIS
action: SET
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-set
stringify: true
value:
keyName: '{keyName}'

Params

Description

id, async, type, action, operation, serviceAccountId

The action default parameters, see more.

key

The key name, to create dynamic keys use wildcards.

stringify

If true the value property will be stringified.

value

The key value. You can set plain text or JSON objects that will be stringified.

DEL

rhub add:action <eventId> <filterId> REDIS DEL

Removes the specified keys. A key is ignored if it does not exist. Source: Redis

YAML

-
id: my-action-id
async: false
type: REDIS
action: DEL
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-del

Params

Description

id, async, type, action, operation, serviceAccountId

The action default parameters, see more.

key

The key name, to create dynamic keys use wildcards.

Contents
SET
DEL