Trouble with Integration Amazon ElastiCache: ERR SELECT is not allowed in cluster mode

0

Hi, I'm currently integrating Amazon ElastiCache (Redis cache) into my Laravel application using a serverless cache configuration. In Laravel, I'm using the Predis package. Everything runs smoothly on my local machine with local Redis. However, when attempting to add Amazon ElastiCache as a cache driver, I encounter the following error: SELECT failed: ERR SELECT is not allowed in cluster mode [tls://mycachename.cache.amazonaws.com:6379]. I've tried various solutions, but none seem to work. Can someone assist me in resolving this issue?

Emon
已提問 4 個月前檢視次數 930 次
1 個回答
1

Amazon ElastiCache Serverless only supports Redis Cluster Mode Enabled (CME). When running in cluster mode, Redis doesn't support the SELECT command, which your Predis client is trying to use. This probably happens because Predis assumes Redis is running in non-clustered mode (Cluster Mode Disabled or CMD). Please see the configuration guide for Predis and try to configure Predis to use Redis in Cluster Mode - see the docs here and this StackOverflow question

AWS
maayanh
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南