skip to Main Content

RedisJSON – Manipulating the JSON array of objects (Using Node Redis client)

This is the data [ { "senderID": "64d9c926c17fd183a93d5e35", "receiverID": "64d9c92dc17fd183a93d5e39", "timestamp": "2023-08-14T07:39:45.946Z", "content": "bru", "status": "delivered", "type": "chat", "messageID": "8188946b-67e4-4d86-a927-32842361825c" },........ ] I just want to select all the status sent and change status to delivered if (messageIDs.length === 0)…

VIEW QUESTION

How to modify maxmemory on Redis cloud

redis.exceptions.ResponseError: OOM command not allowed when used memory > 'maxmemory'. Im getting above error and I tried setting up through redis-cli, the maxmemory config is not available. It has only below attribute. CONFIG GET * "activerehashing" "yes" "list-max-ziplist-size" "-2" "list-compress-depth"…

VIEW QUESTION

redis delete does not delete the key

In my redis database I have a key: 127.0.0.1:6379[5]> get "263384DB-61DD561800016316-240C0700" "{"json":{"created":"1641895448090335","last_signal":"1641895448","tos":"184","deleted":"0","num_sfds":"4","num_streams":"4","num_medias":"2","num_tags":"2","num_maps":"2","ml_deleted":"0","created_from": ... about 6300 chars I try 127.0.0.1:6379[5]> del "263384DB-61DD561800016316-240C0700" (integer) 1 I also tried: 127.0.0.1:6379[5]> DEL `"263384DB-61DD561800016316-240C0700"` Invalid argument(s) 127.0.0.1:6379[5]> DEL '"263384DB-61DD561800016316-240C0700"' (integer) 0 but value is still…

VIEW QUESTION

Unregistering a RedisGears registration using inline redis-cli command results in "ERR unknown command `RG_UNREGISTER`"

When using redis-cli, I can unregister a RedisGears registration like this: 127.0.0.1:16379> RG.UNREGISTER "0000000000000000000000000000000000000000-4" OK When running this command as an inline redis-cli command, it fails: $ redis-cli "RG_UNREGISTER 0000000000000000000000000000000000000000-6" (error) ERR unknown command `RG_UNREGISTER 0000000000000000000000000000000000000000-6`, with args beginning with:…

VIEW QUESTION
Back To Top
Search