This is an automated email from the ASF dual-hosted git repository.
hulk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git
The following commit(s) were added to refs/heads/main by this push:
new 0adb8ab5 docs: update SELECT command for redis-databases support (#345)
0adb8ab5 is described below
commit 0adb8ab57f69642eb11c01e1fd2433d140ce06d6
Author: 涵曦 <[email protected]>
AuthorDate: Thu Mar 5 10:02:17 2026 +0800
docs: update SELECT command for redis-databases support (#345)
* docs: update SELECT command for redis-databases support
* Apply suggestions from code review
* Apply suggestion from @git-hulk
* Update docs/supported-commands.md
---------
Co-authored-by: hulk <[email protected]>
---
docs/supported-commands.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/supported-commands.md b/docs/supported-commands.md
index 0461c077..c1f32145 100644
--- a/docs/supported-commands.md
+++ b/docs/supported-commands.md
@@ -342,7 +342,7 @@ To guarantee the correctness of client SDK, we rename the
`CLUSTER` command to `
| BGSAVE | ✓ | v1.0.0 | Initiates a background save
of the dataset to disk.
|
| LASTSAVE | ✓ | v2.6.0 | Returns the timestamp of
the last successful save to disk. Additionally, `LASTSAVE ISO8601` returns the
time in ISO8601 format. |
| PING | ✓ | v1.0.0 | Checks if the server is
alive, responding with "PONG."
|
-| SELECT | ✓ | v1.0.0 | simply returns OK.
|
+| SELECT | ✓ | v1.0.0 | Switches between databases
when `redis-databases` > 0 (default 0: returns OK without switching) since
2.15.0. |
| ECHO | ✓ | v2.0.6 | Echoes back the input
string, useful for testing.
|
| MONITOR | ✓ | v1.0.0 | Streams every command
processed by the server in real time.
|
| SHUTDOWN | ✓ | v1.0.0 | Stops the server,
optionally saving the dataset to disk.
|
@@ -383,8 +383,9 @@ To guarantee the correctness of client SDK, we rename the
`CLUSTER` command to `
The response of `DBSIZE` and keyspace section of `INFO` is updated
asynchronously after executing `DBSIZE SCAN` command.
-In Kvrocks the `SELECT` command is just a placeholder and does not switch
between dbs.
-Use [the namespace feature](https://kvrocks.apache.org/docs/namespace) instead
if multiple dbs are needed.
+Before 2.15.0, Kvrocks only allowed using [the namespace
feature](https://kvrocks.apache.org/docs/namespace) to isolate your data. That
said, the `SELECT` command is just a placeholder and does not switch between
databases. And now, the Redis database mechanism is supported, and you can
enable it by setting the `redis-database` to the database number you expect in
the configuration file.
+
+To be noticed, we don't allow using the namespace feature and the Redis
database at the same time.
:::