4 ms·
Somewhat related - is there any project for viewing the key/value pairs in a redis instance in a more friendly way than via the command-line? I'd like to be ab
by swanson 15y ago
Somewhat related - is there any project for viewing the key/value pairs in a redis instance in a more friendly way than via the command-line?
I'd like to be able to enter a key-matching pattern 'users:*' and see the list of all the keys (and metadata like expiration time, number of accesses, update/created time).
EDIT: Found this - http://www.servicestack.net/RedisAdminUI/AjaxClient/# http://www.servicestack.net/RedisAdminUI/AjaxClient/# looks like what I was searching for, or at least 80% of it.
- andrewvc 15y agoThis is a very expensive operation if you have a large number of keys, and can easily block redis. keys is intended for debugging a relatively small number of keys. Basically, if you're having to do this in prod, you may be fucked.
- eurleif 15y agohttp://redis.io/commands/keys http://redis.io/commands/keys "While the time complexity for this operation is O(N), the constant times are fairly low. For example, Redis running on an entry level laptop can scan a 1 million key database in 40 milliseconds." You certainly shouldn't use it in production code, but running it on a production database by hand occasionally shouldn't be too bad. (Especially if you have slaves.)