decrement

This block is part of the redis group and was last modified in core v13.0.6.

Redis Key Selection Required

This block relies on a Redis key to perform its redis releated actions. You must manually select the Redis key you want to use in the flow in the blueprint using the Redis key selector modal. To access the modal, click the white button on the block.

decrement v11.0.0 Updated v13.0.6

Decrements the number stored at key by one. If the key does not exist, it is set to 0 before performing the operation.

In pins 1 + flow
  • flow
    flow
  • number required
    number

    Number to decrement given the key with.

Out pins 3 + flow
  • flow
    flow
  • number
    number

    New number.

  • error
    value
  • key v13.0.6
    value

    current redis key, this outpin be handy when using dynamic redis keys

redis decr
decr

A typical wiring for decrement: a function trigger starts the flow; the flow out pin feeds debug.

Studio canvas example for the decrement block: typical wiring for decrement.

Version history

Introduced in v11.0.0.

Last modified in v13.0.6.


Back to redis Return to the main group to view all sub-groups Back to redis Return to the group to view all blocks within this group