Questions tagged [redisjson]
117 questions
2
votes
2 answers
How to type async RedisJSON methods correctly?
I'm having an issue correctly typing the redis node package correctly. As an example of the base code for a simple JSON.GET
import * as redis from 'redis';
const client = redis.createClient();
async function getSomeData() {
return await…

cb1210
- 83
- 5
2
votes
1 answer
Manipulating nested array of obects in RedisJSON
I have a JSON with nested array like below to be saved in Redis. I am using RedisJSON module to save the data as JSON.
customer:12345 : {
info : {
key1: val1,
key2: val2,
key3: val3
},
rides: [
{
…

Giri
- 451
- 1
- 4
- 13
2
votes
1 answer
How to index JSON arrays in RediSearch?
I'm using the modules RedisJSON and RediSearch together to perform search queries on JSON data.
For every JSON object, I need to index all the string elements in an array field to be able to get this object by querying one of the strings in the…

Elf
- 153
- 2
- 12
2
votes
1 answer
Is there support of mass insertion with RedisJson?
I'm considering to use the mass insertion feature of the redis. Though did not find any references to do so.
Is there work arounds to use the redis mass insert with RedisJson?

Jay Modi
- 3,161
- 4
- 35
- 52
2
votes
1 answer
RedisJSON - MGET Example?
I am using RedisJSON and I can't figure out how to get the full JSON values stored for multiple keys, following the documentation on the official site of the plugin.
For example, from the redis-cli:
redis-cli-1234> json.set k1 . '{"a":"a"…

orcaman
- 6,263
- 8
- 54
- 69
2
votes
1 answer
Best way to run Redis/Rejson with HA on AWS
As AWS & GCP is not providing managed service for any of the modules of Redis. I am looking forward to running Redis ReJson with HA configuration on AWS.
Is it best way to set it up on EC2 with RDB backup? How EBS storage will work as i want multi…

Harsh Manvar
- 27,020
- 6
- 48
- 102
2
votes
1 answer
Why does the EVALSHA command come at such a performance cost when compared to native commands run on the redis-cli client?
Here are some tests and results I have run against the redis-benchmark tool.
C02YLCE2LVCF:Downloads xxxxxx$ redis-benchmark -p 7000 -q -r 1000000 -n 2000000 JSON.SET fooz . [9999]
JSON.SET fooz . [9999]: 93049.23 requests per…

Christian Matthew
- 4,014
- 4
- 33
- 43
2
votes
2 answers
Is it possible to use LRANGE in rejson array?
I have a Redis-Server with rejson and want to retrieve a part of a nested array.
The array keeps getting bigger, because I add data with a background job. But I don't need all of the information, only a part of it. But there seems to be no…

user3306721
- 55
- 4
2
votes
1 answer
Redis ReJSON returns me two errors systematically: missing key at non-terminal path and new object must be created at root
The second error is relatively straighforward to understand.
The first is a bit more challenging.
I have tried different combination to overcome this error but none improvement occurs.
My console returns me:
// console log > first promise {…

Webwoman
- 10,196
- 12
- 43
- 87
2
votes
2 answers
ReJson - Retrieve all values from matches of 2nd layer of keys
I am trying to get all values whose 2nd level key is same. Does ReJson Support this functionality?
For example:
JSON.SET myKey . '{"book1": {"author":"xyz", "price":100}, "book2": {"author":"abc", "price":200}}'
JSON.GET myKey .book1.author =>…

abhijit gupta
- 161
- 1
- 12
2
votes
1 answer
How to set nested values (objects) using ReJSON
If I insert the following object using ReJSON:
JSON.SET testing . '{"person":{"name":"John","surname":"Doe"}}'
Is there a way to "append" a nested structure? I would like to add "address.name" for an example to get the following JSON:
{
"person":…

alturkovic
- 990
- 8
- 31
2
votes
1 answer
Using ReJson to store a numerical tree
I would like to insert fixed-length numerical values in a tree and check their presence at a later point. Most of the numerical values are similar so it does not make sense to put them in a SET since I would be wasting space.
Since ReJson PATH…

alturkovic
- 990
- 8
- 31
1
vote
0 answers
Query redis data after a certain Timestamp
So I want to query all redisJsons that were inserted to the Redis cache after a certain timestamp .My redisJsons have a field like this one :
GENERATION_TIMESTAMP : "2023-05-22 16:49:14.8052438"
Is there a way to query them without using a sorted…

vincent_01
- 13
- 2
1
vote
1 answer
Is it possible to use RedisJson and RedisSearch to filter objects by the length of array property?
If I have multiple keys of JSON type in Redis DB that have the following form (Each key have different amount of users)
{
"users": [
{
"name": "Alice",
"age": 15
},
{
"name": "Bob",
…

Yaniv
- 63
- 6
1
vote
1 answer
Add RedisJSON module commands to ACL
I am using RedisStack 6.2.6-v6.
I have the following user in my acl list:
user username on -@all +@read +@write +@connection ~prefix:* > somepassword
When try executing commands from the JSON module I receive the following error:
NOPERM this user…

raouf ben hassine
- 181
- 9