Hi Redis Team,

I was reviewing the PING command's JSON configuration and noticed that it currently has the following command_flags:

"command_flags": [
    "FAST",
    "SENTINEL"
]

Given that the PING command is generally used to check the server's liveliness, I was wondering why it is not marked as readonly. Is there a specific reason for this?

Comment From: sundb

because it's not a keyspace command, other command: ACL, CLIENT

Comment From: nesty92

In summary, PING isn’t marked as "READONLY" because it’s considered a server-level command rather than a keyspace command, and thus doesn’t fall under the read-only or read-write categorization applied to commands that access or modify data.