Currently, the policy only executes when it reaches 100%, which often results in OutOfMemory errors. It would seem logical to have the ability to set the policy to be executed at, say, 90% of memory used.
Alternatively, could there be a way to manually trigger the eviction policy through code, for instance, when CloudWatch Alarm is set off due to memory usage exceeding a certain limit.
After talking to AWS ElasticCache engineer, I got these answers:
Hope this helps.