1 個回答
- 最新
- 最多得票
- 最多評論
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\"]"
已回答 1 年前
相關內容
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前