- Newest
- Most votes
- Most comments
Client-side caching is not supported in ElastiCache Serverless, but it IS supported in self-managed ElastiCache deployments since Redis 6.
Now with that said, I tried to run the same command CLIENT TRACKING ON OPTOUT
shown in your application error and associated commands directly on the cluster, I'm using an ElastiCache self-managed Redis 7.1 Cluster Mode enabled cluster and I was able to run them without any issues, feel free to try this out on your cluster while connecting through redis-cli from an accessible client -
cluster:6379> set mykey myvalue
OK
cluster:6379> get mykey
"myvalue"
cluster:6379> HELLO 3
1# "server" => "redis"
2# "version" => "7.1.0"
3# "proto" => (integer) 3
4# "id" => (integer) 109572
5# "mode" => "cluster"
6# "role" => "master"
7# "modules" => (empty array)
cluster:6379> CLIENT TRACKING ON OPTOUT
OK
cluster:6379> SET mykey newvalue
OK
cluster:6379> GET mykey
"newvalue"
cluster:6379> SET mykey newupdatedvalue
OK
cluster:6379> GET mykey
-> invalidate: 'mykey'
"newupdatedvalue"
cluster:6379> SET mykey changedvalue
OK
cluster:6379> GET mykey
-> invalidate: 'mykey'
"changedvalue"
As you can see above the OPTOUT option in client-side caching is working as expected when run directly on the cluster. (The OPTOUT
option avoids the keys in the next command to be tracked, you can see invalidate messages for subsequent changes to the Key). I'm using HELLO 3
command here to enable RESP3 mode. It's unclear how these communications are done when performed through the Redis client rueidis
, but feel free to test these commands directly on the cluster and see if your ElastiCache deployment is working as expected. If it does, I would recommend reaching out to the team responsible for rueidis
client.
Relevant content
- Accepted Answerasked a year ago
- asked a year ago
- asked 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 4 months ago