trim
This block is part of the redis group and was last modified in core v13.0.7.
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.
trim v13.0.7 trim a list to the specified range
In pins 2 + flow
- flow
flow - start required
numberthe index to start at.
- stop required
numberthe index to stop at. can be -1 or -2
Out pins 4 + flow
- flow
flow - result
value - success
condition - error
value - key
v13.0.7value
redis ltrim |
ltrim |
A typical wiring for trim: number feeds the start pin; push feeds the flow pin; push array feeds the list pin; number feeds the stop pin; the flow out pin feeds reply in JSON; the result out pin feeds range.

Commonly used with
In production blueprints, this block is most often wired together with:
- number: feeds into this block. Generates a valid number from the filled custom value in the blueprint.
- reply in JSON: this block feeds into it. Reply to any httpconnection as JSON body.
- get fields: feeds into this block. Gets the selected fields from the given object.
- push: feeds into this block. prepend one element to a list.
- push array: feeds into this block. prepend multiple elements to a list.
- range: this block feeds into it. get a range of elements from a list. Use start 0 and stop -1 to retrieve all items.
Version history
Introduced in v13.0.7.
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 lists Return to the group to view all blocks within this group
