1 Answer
- Newest
- Most votes
- Most comments
0
As checked link Supported Redis JSON commands. The command JSON.SET shoud be supported, and follow doucment:JSON.SET is working as expected. Could you double check your ElastiCacache redis version, and your redis client version.
The testing in my new created Elasticache redis cluster for reference.
$ redis-6.2.6/src/redis-cli --version
redis-cli 6.2.6
$ redis-6.2.6/src/redis-cli -h xxx.cache.amazonaws.com ping
PONG
$ redis-6.2.6/src/redis-cli -h xxx.cache.amazonaws.com info server | grep redis_version
redis_version:6.2.6
$ redis-6.2.6/src/redis-cli -h xxx.amazonaws.com JSON.SET k1 . '{"firstName":"John","lastName":"Smith","age":27,"weight":135.25,"isAlive":true,"address":{"street":"21 2nd Street","city":"New York","state":"NY","zipcode":"10021-3100"},"phoneNumbers":[{"type":"home","number":"212 555-1234"},{"type":"office","number":"646 555-4567"}],"children":[],"spouse":null}'
OK
$ redis-6.2.6/src/redis-cli -h xxx.cache.amazonaws.com JSON.GET k1 $.address.*
"[\"21 2nd Street\",\"New York\",\"NY\",\"10021-3100\"]"
Relevant content
- asked a year ago
- asked 4 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago