Questions tagged [redis-commands]
7 questions
670
votes
16 answers
Redis command to get all available keys?
Is there a Redis command for fetching all keys in the database? I have seen some python-redis libraries fetching them. But was wondering if it is possible from redis-client.

Lalith
- 19,396
- 17
- 44
- 54
103
votes
11 answers
How do I remove keys?
I want to remove keys that match "user*".
How do I do that in redis command line?

TIMEX
- 259,804
- 351
- 777
- 1,080
56
votes
2 answers
using different database at redis command prompt
dThe following works as expected. But how do I insert the data into forth database instead of default "0" from command prompt?
# echo -n "testing" | /home/shantanu/redis-2.4.2/src/redis-cli -x set my_pass
OK
# echo -n "testing" |…

shantanuo
- 31,689
- 78
- 245
- 403
2
votes
0 answers
redis executing too many 'info' commands
When I monitor the Redis using monitor command I observe there are lots of info command is being executed. Is this executed by Redis server itself or by the client applications?
The problem is, when I check the output of the client list command…

vikas kv
- 386
- 2
- 15
0
votes
1 answer
Using lua script to read thousand keys from file and deleting key in redis
I am using this file, but its not working. What am I doing wrong
function lines_from(file)
if not file_exists(file) then return {} end
local lines = {}
for line in io.lines(file) do
lines[#lines + 1] = line
end
return lines
end
--…

Dev Dev
- 55
- 1
- 7
0
votes
1 answer
How to check number of commands that redis has not processed yet
I am trying to do monitoring redis database. I'm using telegraf, influxdb and grafana to monitor it. now, I want to check number and type of commands which are pending to process.
I check this page here,
Redis commands queue size. It helped alot,…

injin
- 11
- 2
0
votes
0 answers
Redis 'COMMAND' command
redis-cli info commandstats says cmdstat_command:calls=4333329,usec=6417286195,usec_per_call=1480.91 for production server
This is about https://redis.io/commands/command
I see these COMMANDs in slowlog:
11) 1) (integer) 2012080
2) (integer)…

Dmitry Teplyakov
- 2,898
- 5
- 26
- 46