273 questions
0
votes
1
answer
42
views
Redis Keys show up in local environment but not in Cluster
I am writing a program which creates and then uses Redis keys for message sorting. When i try to do this using my local Redis instance i can see that the keys are created and the program works fine. ...
0
votes
1
answer
90
views
Need a script to fetch the redis latency values over 20 seconds and store the results in a file
I need to periodically update a file that will host the Redis Latency values at certain time daily.
I am using the command redis-cli --latency -h 127.0.0.1 -p 6379. The issue is that this command ...
0
votes
1
answer
79
views
Cannot find records using redis_cli
I have Redis running in docker compose:
version: '3'
services:
redis:
image: redis:7
container_name: my-redis
command: redis-server --requirepass ${REDIS_PASSWORD:-REDIS_PASSWORD}
...
0
votes
1
answer
2k
views
unknown command 'MIGRATE', with args beginning with
I have an existing source redis instance running on redis version 6.0.5 cache.m6g.large
I have a target redis instance running on redis version 7.1.0
I want to migrate keys from the source to the ...
0
votes
2
answers
1k
views
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&...
1
vote
2
answers
443
views
Why is redis throwing "The client is closed" return Promise.reject(new errors_1.ClientClosedError()); error?
I am running redis in docker environment with nodejs as backend, postgres as db and react as frontend. The logic is to get index value from the frontend, calculate the fibonacci number for the index ...
0
votes
2
answers
802
views
Redis client-side cache (tracking) test
I'm testing Redis client-side caching using redis-cli.
Redis server version: 7.0.11
redis-cli version: 7.0.11
redis-cli 1 I started with the monitor command:
redis-cli monitor
In redis-cli 2 I run ...
0
votes
1
answer
906
views
How to check current aof/rdb enableness status on a running redis server cli and how to enable them?
How to check current aof/rdb enableness status on a running redis server's cli ?
How to enable them on cli ?
I'm using redis 6.
0
votes
1
answer
602
views
Fetch keys which are older than 10 days from redis
I am trying to fetch the keys from Redis which are older than 10 days. I am using Zrange to fetch the old keys which are saved based on timestamp. I am getting this error when I run the last command ...
0
votes
1
answer
194
views
Batch / offline methods of converting RESP files to Redis RDB file
Assuming we want to automate the process of creating RDB files (and don't want to use Redis server for this purpose) what options are available?
The current process involves importing (with redis-cli)...
2
votes
1
answer
2k
views
How to configure Redis clients when connecting to master-replica setup?
I have a Redis setup with 1 master and 2 replicas - so totally 3 nodes.
Given that writes can happen only via master node while reads can happen via all 3 nodes, how do I configure the clients?
Can I ...
0
votes
2
answers
1k
views
Is there a way to disable command 'keys *' in Redis?
I'm using AWS elastic cache Redis.
I saw that Warning: consider KEYS as a command that should only be used in production environments with extreme care in Redis Documentation.
If I want to disable the ...
0
votes
1
answer
193
views
Can I run Redis CLI command line options from the Lua API?
I want to run redis-cli --bigkeys on my Redis cluster to evaluate the memory usage, and perform a SCAN across the key space to trigger an active expiry.
However, for permissions reasons I only have ...
0
votes
1
answer
465
views
Stroing large entry in redis using cli?
I am trying to store data of 5000 characters in redis via cli.
My command is SET MY_KEY "copy pasted the value"
But the whole value is not getting pasted in CLI.
Is there any alternative to ...
1
vote
1
answer
540
views
Unable to get keys on redis cluster
I have created a cache key on redis cluster with cacheKey as "citylist_[object Object]"
When i am trying to get the keys on cluster mode with pattern keys citylist* on redis. It is ...
0
votes
1
answer
1k
views
json object append in redis-cli
i am using redis-cli for one of my project and i need to append the data into existing json in redis, i have tried json.arrappend but it is not working.
i need to append in sDetail array and in ...
0
votes
1
answer
818
views
when I start redis instance, it gets added as replica to existing cluster automatically
I am running redis in cluster mode with one master and two replicas. I have a host where for some reason all redis instances were down and when I do ps -ef|grep redis , I would get nothing. Then I ...
0
votes
1
answer
2k
views
JSON.SET in redis cli and stackexchange.redis it's showing exception
I'm trying to set and get JSON results in redis with redis-om anyway it uses Stackexchange.Redis even with that the same exception repects.
using System;
using StackExchange.Redis;
...
1
vote
1
answer
4k
views
Redis-cli verbose mode
I was trying to access the remote Redis instance using redis-cli -h and -p parameters.
Every time I hit send nothing seems to happen for over a minute. So, I don't even know ether it is a slow ...
0
votes
1
answer
3k
views
How to set redis key with the output of a bash command
I'm using redis-cli within a bash script, now I want to save the current date in a specific format into a redis specific key. how do I do that?
I already tried redis-cli -x SET last-modified $(date +&...
1
vote
0
answers
365
views
How to fetch redis cli set json and fetch from Get Api Spring boot redis?
I want response from redis cli to postman as this
http://localhost:8585/api/home/getBestTrainerBasedRating
[
{
"trainerid": 28,
"rating": 5.0,
"...
0
votes
1
answer
137
views
Redis bitcount command returns a syntax error
after set myKey as key in Redis with foobar value
I want to get the BITCOUNT of myKey.
this command in Redis-CLI giving me an error: BITCOUNT myKey 2 3 BYTE
(error) ERR syntax error
how can I solve ...
0
votes
1
answer
2k
views
Redis data is not persistent
I am new to using Redis and I am playing around a little bit with it. I have noticed that after a little time, let's say 10 minutes all the keys that I inserted just go away.
I just did the default ...
1
vote
1
answer
2k
views
redis-cli --pipe yields MOVED errors when bulk uploading to Elasticache with cluster-mode enabled
I am trying to use redis-cli --pipe to bulk upload some commands to my AWS Elasticache for redis cluster. The commands come from parsing a file via a custom awk command, which helps generate some HSET ...
3
votes
1
answer
5k
views
Error while using Redis Expire command options
I am trying to set expiry on a key if expiry is not already set by using NX option of Expire command.
But I keep getting error from redis-cli, and when I try from code NX option gets ignored.
When I ...