---
title: "exists · RUAL Documentation"
description: "Checks if the key already exists"
canonical: https://docs.rual.nl/block-types/redis/function_redis_cache_key_exists
language: en
---

# exists

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

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

Checks if the key already exists

- flow `flow`

- exists `condition`

- key `v13.0.6` `value` current redis key, this outpin be handy when using dynamic redis keys

| `redis exists` |
| --- |
| `exists` |

A typical wiring for [exists](https://docs.rual.nl/block-types/redis/function_redis_cache_key_exists): [encode](https://docs.rual.nl/block-types/value/value_encode_base64) feeds the `key` pin; the `flow` out pin feeds [branch](https://docs.rual.nl/block-types/flow/branch).

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

### Commonly used with

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

- [branch](https://docs.rual.nl/block-types/flow/branch): wired in both directions with this block.

- [create](https://docs.rual.nl/block-types/globals/trigger_custom_function): feeds into this block. Creates a new function that can be executed using the given name.

- [encode](https://docs.rual.nl/block-types/value/value_encode_base64): feeds into this block. Encode a raw value into Base64.

- [get fields](https://docs.rual.nl/block-types/users/user_field_getter_multiple): feeds into this block. Gets the given fields from user data and returns this per data-pin.

### Version history

Introduced in [`v11.0.0`](https://docs.rual.nl/core-versions/110000).

Last modified in [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

### Service documentation
