X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/efc3408748061a08ec5ff18e392c30f31f5094a2..06e09c9b586d0e2c5d91dc596f871be56c6e0971:/doc/KeysCommand.html diff --git a/doc/KeysCommand.html b/doc/KeysCommand.html deleted file mode 100644 index 6d79428a..00000000 --- a/doc/KeysCommand.html +++ /dev/null @@ -1,43 +0,0 @@ - - - -
- - - -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 of --the slow commands that may ruin the DB performance if not usedwith care*.-In other words this command is intended only for debugging and *special* operations like creating a script to change the DB schema. Don't use it in your normal code. Use Redis Sets in order to group together a subset of objects.-Glob style patterns examples: -* h?llo will match hello hallo hhllo* h*llo will match hllo heeeello* hUse \ to escape special chars if you want to match them verbatim.[
ae]
llo will match hello and hallo, but not hilloReturn value
-Multi bulk reply