HINCR / HINCRBY / HINCRBYFLOAT

HINCR

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

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: HINCR
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-set
field: the-redis-hash-field

Property

Description

key

The key name, to create dynamic keys use wildcards.

field

The hash field name, to create dynamic fields use wildcards.

HINCRBY/ HINCRBYFLOAT

HINCRBY
HINCRBYFLOAT
rhub add:action <eventId> <filterId> REDIS HINCRBY

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: HINCRBY
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-incr
field: the-redis-hash-field
value: '{modelKeyValue}'
rhub add:action <eventId> <filterId> REDIS HINCRBYFLOAT

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: HINCRBYFLOAT
operation: null
serviceAccountId: my-redis-account-id
template:
key: the-redis-key-to-incr
field: the-redis-hash-field
value: '{modelKeyValue}'

Property

Description

key

The key name, to create dynamic keys use wildcards.

field

The hash field name, to create dynamic fields use wildcards.

value

The increment value, to increment dynamic values use wildcards.