PragmaTwice commented on code in PR #3294: URL: https://github.com/apache/kvrocks/pull/3294#discussion_r2629986910
########## kvrocks.conf: ########## @@ -388,6 +388,24 @@ max-bitmap-to-string-mb 16 # Default: yes redis-cursor-compatible yes +# Number of databases for Redis SELECT compatibility mode. +# When set to a value greater than 0, enables Redis SELECT command compatibility. +# When set to 0 (default), SELECT command always returns OK but does not switch databases. +# +# With a value of 16, you can use SELECT 0 through SELECT 15. +# Each database index is mapped to a namespace name with "db" prefix. +# DB 0 uses the default namespace, DB 1 uses "db1", DB 2 uses "db2", and so on. +# +# IMPORTANT NOTES: +# 1. This is a READONLY configuration and can only be set at startup +# 2. Setting this to 0 disables SELECT compatibility mode (default behavior) +# 3. Setting this to a value > 0 enables SELECT compatibility mode +# 4. Valid range is 0 to INT_MAX +# 5. Cannot be used together with namespace feature (namespace tokens) Review Comment: ```suggestion # Number of Redis-compatible databases. # When set to 0 (default), SELECT command acts like a no-op i.e. Redis-compatible databases are disabled. # When set to a positive value, SELECT command is Redis-compatible and the namespace feature is disabled. # # For example, if you set redis-databases to 16, then SELECT 0 through SELECT 15 are available. # Note that SELECT 0 always maps to the default namespace, regardless of whether this feature is enabled. ``` LLM usually dumps lots of useless words.. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
