@MoisesGonzalezS
One thing to note about AWS ElastiCache Serverless is that you cannot modify the maxmemory-policy
.
Redis configuration and limits - Amazon ElastiCache for Redis
To get around that the documentation mentions the following about serverless capacity settings and how it handles Out of Memory
errors and evicting data on maximum memory usage limit.