---
title: "push array · RUAL Documentation"
description: "prepend multiple elements to a list"
canonical: https://docs.rual.nl/block-types/redis/redis_list_push_array
language: en
---

# push array

This block is part of the [`redis`](https://docs.rual.nl/block-types/redis) group and was last modified in core [`v13.0.7`](https://docs.rual.nl/core-versions/130007).

### 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.

prepend multiple elements to a list

- flow `flow`

- elements required `array` the element to push.

- flow `flow`

- success `condition`

- error `value`

- length `number`

- key `v13.0.7` `value`

| `redis lpush` |
| --- |
| `lpush` |

A typical wiring for [push array](https://docs.rual.nl/block-types/redis/redis_list_push_array): [branch](https://docs.rual.nl/block-types/flow/branch) feeds the `flow` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `list` pin; [with values](https://docs.rual.nl/block-types/array/array_of_values) feeds the `elements` pin; the `flow` out pin feeds [trim](https://docs.rual.nl/block-types/redis/redis_list_trim).

![Studio canvas example for the push array block: typical wiring for push array.](https://docs.rual.nl/canvas-examples/redis_list_push_array.png)

### Commonly used with

In production blueprints, this block is most often wired together with:

- [get fields](https://docs.rual.nl/block-types/object/object_field_getter_multiple): feeds into this block. Gets the selected fields from the given object.

- [branch](https://docs.rual.nl/block-types/flow/branch): feeds into this block.

- [trim](https://docs.rual.nl/block-types/redis/redis_list_trim): this block feeds into it. trim a list to the specified range.

### Version history

Introduced in [`v13.0.7`](https://docs.rual.nl/core-versions/130007).

### Service documentation
