range

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.

range v13.0.7

get a range of elements from a list. Use start 0 and stop -1 to retrieve all items.

In pins 2 + flow
  • flow
    flow
  • start required
    number

    the index to start at.

  • stop required
    number

    the index to stop at. can be -1 or -2

Out pins 4 + flow
  • flow
    flow
  • elements
    array
  • success
    condition
  • error
    value
  • key v13.0.7
    value
redis lrange
lrange
redis lists get
redis lists retrieve
redis lists fetch
redis lists all
redis lists get all
get list items
fetch list items

A typical wiring for range: number feeds the start pin; get guid feeds the list pin; number feeds the stop pin; the flow out pin feeds get multiple documents (cached); the elements out pin feeds foreach.

Studio canvas example for the range block: typical wiring for 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.
  • get multiple documents (cached): this block feeds into it. Get multiple documents from the given storage using the hot document cache. Fetches each document individually. Skips documents that do not exist or are removed.
  • foreach: this block feeds into it.
  • create: feeds into this block. Creates a new function that can be executed using the given name.
  • get guid: feeds into this block. Returns the guid (field: _meta.guid) of the given user.
  • trim: feeds into this block. trim a list to the specified range.

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