Skip to content

Cache::flexible fails with Redis error "Error processing EXEC across the cluster" #53266

@BernhardK91

Description

@BernhardK91

Laravel Version

11.28.1

PHP Version

8.3

Database Driver & Version

No response

Description

We use a Redis Cluster in AWS. After adding Cache::flexibel it fails with a RedisClusterException Error processing EXEC across the cluster (/var/task/vendor/laravel/framework/src/Illuminate/Redis/Connections/Connection.php:116).

I'm not sure yet, why that is, but I assume it is caused by the usage of putMany method in the RedisStore.php. This uses transactions by calling multi() and later exec(). It seems that is not supported in clusters.

Steps To Reproduce

User a Redis cluster as cache store. Add a Cache::flexible to a controller and execute it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions