X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/924aa408b99837036b679bd3895f836af6bc763f..43f30ac0f9bcc4a7afb06136a8dfe5b703be7935:/doc/KeysCommand.html diff --git a/doc/KeysCommand.html b/doc/KeysCommand.html index 98718fc0..0b64d1a8 100644 --- a/doc/KeysCommand.html +++ b/doc/KeysCommand.html @@ -16,7 +16,7 @@
Returns all the keys matching the glob-style pattern asspace separated strings. For example if you have in thedatabase the keys "foo" and "foobar" the command "KEYS foo*
"will return "foo foobar".
Note that while the time complexity for this operation is O(n)the constant times are pretty low. For example Redis runningon an entry level laptop can scan a 1 million keys databasein 40 milliseconds. Still it's better to consider this one ofthe slow commands that may ruin the DB performance if not usedwith care.Glob style patterns examples:
* haello will match hello and hallo, but not hilloUse \ to escape special chars if you want to match them verbatim.
* RANDOMKEY to get the name of a randomly selected key in O(1).
* haello will match hello and hallo, but not hilloUse \ to escape special chars if you want to match them verbatim.