I have 2 key spaces on my redis server:
db0:keys=1,expires=0 db1:keys=36679593,expires=0
But if I run
redis-cli KEYS '*'
I only get keys in db0. How can I search for keys in db1?
You can use redis-cli with the -n option;
redis-cli
-n
$ redis-cli -n 1 KEYS '*' $ redis-cli --help redis-cli 2.6.7 Usage: redis-cli [OPTIONS] [cmd [arg [arg ...]]] ... -n <db> Database number ...
Source: https://habr.com/ru/post/1481426/More articles:Google Maps visual update - how to disable Roboto font in InfoWindow - javascriptHow to unpack javascript using jsbeautifier in python? - javascript-webkit-user-select: none; - does not work - htmljQuery UI Button Radio hard to choose Long mouse clicks - jqueryDataGridDragDropTarget: change icon based on target target - c #sharing a JDBC connection object between other objects - javaPool pool pool - javaDjango Haystack and Tagit - djangoHow can I use invoke-sqlcmd without including named pipes? - sql-serverWhich __bridge free bridge should be used to create the Objective-C convenience constructor in C ref? - objective-cAll Articles