INCR / INCRBY / INCRBYFLOAT

INCR

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

Increments the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation. An error is returned if the key contains a value of the wrong type or contains a string that can not be represented as integer. This operation is limited to 64 bit signed integers. Source: Redis

YAML

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

Property

Description

key

The key name, to create dynamic keys use wildcards.

INCRBY/ INCRBYFLOAT

INCRBY
INCRBYFLOAT
rhub add:action <eventId> <filterId> REDIS INCRBY

Sets field in the hash stored at key to value. If key does not exist, a new key holding a hash is created. If field already exists in the hash, it is overwritten. Source: Redis

YAML

-
id: my-action-id
async: false
type: REDIS
action: INCRBY
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-incr
value: '{modelKeyValue}'
rhub add:action <eventId> <filterId> REDIS INCRBYFLOAT

Sets field in the hash stored at key to value, only if field does not yet exist. If key does not exist, a new key holding a hash is created. If fieldalready exists, this operation has no effect. Source: Redis

YAML

-
id: my-action-id
async: false
type: REDIS
action: INCRBYFLOAT
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-incr
value: '{modelKeyValue}'

Property

Description

key

The key name, to create dynamic keys use wildcards.

value

The increment value, to increment dynamic values use wildcards.