You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Document database limit (0–15) for SELECT command as a note (#339)
Addresses issue #338.
The note is inserted after the sentence "New connections always use the
database 0." to ensure it's visible early in the section.
As this is my first PR please let me know if you'd like this phrased
differently, thank you.
---------
Signed-off-by: Dragos Andriciuc <[email protected]>
Signed-off-by: Viktor Söderqvist <[email protected]>
Co-authored-by: Viktor Söderqvist <[email protected]>
Copy file name to clipboardExpand all lines: commands/select.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
Select the Valkey logical database having the specified zero-based numeric index.
2
2
New connections always use the database 0.
3
3
4
+
By default, Valkey provides 16 logical databases, indexed from `0` to `15`.
5
+
You can increase this number by setting the `databases` parameter in the configuration file.
6
+
This change must be made at startup and cannot be modified at runtime.
7
+
4
8
Selectable Valkey databases are a form of namespacing: all databases are still persisted in the same RDB / AOF file. However different databases can have keys with the same name, and commands like [`FLUSHDB`](flushdb.md), [`SWAPDB`](swapdb.md) or [`RANDOMKEY`](randomkey.md) work on specific databases.
5
9
6
10
In practical terms, Valkey databases should be used to separate different keys belonging to the same application (if needed), and not to use a single Valkey instance for multiple unrelated applications.
0 commit comments