Questions tagged [redisclient]

61 questions
0
votes
0 answers

Test suite failed to run. TypeError: Assignment to constant variable

const redis = require('redis-mock'); const asyncRedis = require('async-redis-mock'); const client = redis.createClient(); const asyncRedisClient = asyncRedis.decorate(client); const cacheGroupId = require('../src/cacheGroupId'); describe('Set the…
0
votes
0 answers

redis.client import string_keys_to_dict, dict_merge

I have tried using this from both python 3.6 and 3.9 but get the same error: pip install serialized-redis-interface Collecting serialized-redis-interface Using cached serialized_redis_interface-0.3.1-py3-none-any.whl (7.8 kB) Requirement already…
Ivan
  • 7,448
  • 14
  • 69
  • 134
0
votes
1 answer

Lettuce client for Redis - Cluster Topology Refresh Options not working

I'm using lettuce client version 6.2.0 to connect to a Redis cluster (v 6.2) with 3 masters each having 1 replica. I'm trying that the client re-discovers the cluster topology after a master goes down. Here is the client code I have: …
RRM
  • 2,495
  • 29
  • 46
0
votes
0 answers

Correct way to insert values in Redis with format "Key X , Value A,B,C"

I Have a .csv file with columns like these ID Valuue1 Value2 Value3 1 A B C I'm trying to insert those values in redis where ID will be the KEY and the value will be a string like…
JC_Rambo
  • 61
  • 7
0
votes
1 answer

Not able to retrieve the Date and Time fields data from redis DB by using RediSearch

We are using RediSearch (io.rediseach.client.Cleint) in spring boot application for getting the records from redis DB. We are not able to get the date and time column values(ex: date as 07/21/2021 and time as 09:12) and other columns are retrieved…
0
votes
2 answers

redis mock for testing in nestjs

I am writing test cases in my email-service.spec.ts file my email-service file @Injectable() export class EmailSubscriptionService { private nodeTokenCache; private result; constructor(@InjectRepository(ConsumerEmailSubscriptions) private…
Joy
  • 57
  • 2
  • 11
0
votes
1 answer

jedispool getResource consumes too much latency

I have a function to create a jedispool, final JedisPoolConfig poolConfig = new JedisPoolConfig(); poolConfig.setMaxTotal(25); poolConfig.setMaxIdle(20); poolConfig.setMinIdle(20); poolConfig.setTestOnBorrow(false); …
0
votes
1 answer

delete a key based on the refernmce of values in redis

Hi I have 100 key value pairs with different keys and same value in my redis now I want to delete all my key value pairs using value as reference how can I do it
Darshu Bc
  • 526
  • 5
  • 22
0
votes
1 answer

Redis async call by c#, using "DatabaseAsync" makes response slower when there are 400-500 requests per second

when I use: `public call(Func> func){ var task=func(redisInstance); task.wait(); return task.Result; }` call: call(client => redisInstance.SetMembersAsync(setName)) It works Fine, but when there are many requests 'CPU'…
vakho papidze
  • 465
  • 3
  • 12
0
votes
1 answer

Can I make alias commands on redis-cli?

I have the impression Im always typing again and again the same commands ZRANGE mykey 0 100 WITHSCORES and it is quite repetitive as I have to juggle between maps, sets, and sorted sets (and the client is not great, I can't use the same shortcuts…
Thomas
  • 8,306
  • 8
  • 53
  • 92
0
votes
1 answer

How to add users to redis?

As my title, I want to add a user who has only read permission to my redis server, like several users in mysql. However, I just found one way to add password to the default, modify /etc/redis/redis.conf file of line # requirepass foobared. Any help…
iatboy
  • 1,295
  • 1
  • 12
  • 19
0
votes
0 answers

Redis Persistence Partial

I have multiple keys in redis most of which are insignificant and can be lost in case my redis server goes down. However I have one or two keys, which I cannot afford to lose. Hence I would like that whenever the server restarts, redis reads only…
Dipanshu Verma
  • 459
  • 3
  • 8
  • 22
0
votes
1 answer

JSHint gives Expected an identifier and instead saw a function

I have declared a function which queries Redis and if data is not found in redis then queries the SQL database. Following is my code, it gives an error in the first line itself. I am not sure why the function as an argument is causing the trouble.…
Saurabh Ariyan
  • 827
  • 11
  • 21
0
votes
1 answer

C++ RedisClient : how does RedisValue.toInt() work?

This is about RedisClient, which is a C++ client. I know that you can't store integers in Redis (that are internally converted). RedisSyncClient::command itself does not support integers as RedisBuffer can't be initialized with int,…
lepe
  • 24,677
  • 9
  • 99
  • 108
-1
votes
1 answer

Is there any way to update the sorted set using redis client in node in bulk

I want to update the sorted set record using Redis client in node js. for update the one record I use client.zAdd(key,{score:score, value:memberId}) . Is there any command or function that I can use for the bulk update in Redis. I google this but…