zadd
This block is part of the redis group and was last modified in core v15.0.3.
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.
zadd v13.0.5 Updated v15.0.3add one member to a sorted set
- flow
- value
valuerequiredvalue to add
- score
numberrequiredscore number
- insert only
conditionadds
NXto the command options, indication it should only insert and not update existing members - increment
conditionadds
INCRto the command options, indication it should increment the score to the existing member - only if greater
conditionv15.0.3moves an existing member only when the new score is greater than the one it has; a member that is not there is added. One Redis step on every Redis version (a fixed script, not
ZADD GT). Not together with insert only, increment or only if less (INVALID_OPTIONS); the score must be a finite number (INVALID_SCORE) and the value a string or a number (INVALID_VALUE) - only if less
conditionv15.0.3moves an existing member only when the new score is less than the one it has; a member that is not there is added. The rules of only if greater apply
- flow
- result
numberReturns the number of items added or updated within the sorted set
- changed
conditionv15.0.3With only if greater or only if less:
truewhen the member was added or its score moved,falsewhen the score it had was kept. Not written without those options - score
numberv15.0.3With only if greater or only if less: the score the member has after the block ran. Not written without those options
- success
conditionReturns
truewhen the operation succeeded - error
value - key
valuev13.0.7
redis zadd |
zadd |
A typical wiring for zadd: a function trigger starts the flow; value feeds the set pin; value feeds the value pin; number feeds the score pin; the flow out pin feeds debug.
Version history
Introduced in v13.0.5.
Last modified in v15.0.3.
v13.0.7, click here to see the release notes. Service documentation
External API reference This block wraps a third-party service. Click here for the service's own documentation of the underlying endpoint.Back to
redis Return to the main group to view all sub-groups Back to redis sorted sets Return to the group to view all blocks within this group 