-1

for some reason running command KEYS command on result with millions of keys result in Error: Server closed the connection.

[nir]$ echo "keys abc" | redis-cli -h $redis
1) "abc"
[nir]$ echo "keys a*"| redis-cli -h $redis
Error: Server closed the connection

I guess there is some timeout limit or something, how can I adjust it?

Nir
  • 2,497
  • 9
  • 42
  • 71

1 Answers1

0

solution was to move from KEYS to redis-cli --scan --pattern <pattern>

Nir
  • 2,497
  • 9
  • 42
  • 71