I'm trying to save a key value pair in Amazon ElastiCache for Redis but the set
command is getting stuck.
I first do:
redis-cli -h ${aws-elasticache-cluster-url} -p 6739
And then:
aws-elasticache-cluster-url:6739> set mykey "myvalue"
The command gets stuck here & doesn't indicate success nor failure.
If it works correctly, the command should print "OK".
What's wrong?
The steps I tried are from this document https://docs.aws.amazon.com/AmazonElastiCache/latest/red-ug/GettingStarted.ConnectToCacheNode.html
I've figured out my elasticache cluster is setup with TLS mode. That's why it's unable to run get/set in redis. Enabling ssl to the command and code will help to run with get/set. Hope this help to anyone having the same issue.