erikdubbelboer / phpRedisAdmin

Simple web interface to manage Redis databases.
http://dubbelboer.com/phpRedisAdmin/
3.11k stars 666 forks source link

Wrong number of (sub-)keys #105

Closed logless closed 7 years ago

logless commented 7 years ago

phpRedisAdmin is showing wrong number of keys for sub-keys (key:subkey (count))

Is there a way to refresh the counts? Where in the code is this count calculated and/or cached?

logless commented 7 years ago

FIxed it by enabling "Use the old KEYS command instead of SCAN to fetch all keys." and setting:

'keys' => true,

Any idea why the SCAN command is not providing correct count?

logless commented 7 years ago

Ok, realised that the scan_size parameter (in config.inc.php) is the culprit. After setting it to a higher value (1500) the SCAN command returned correct counts:

'scansize' => 1500