It may be useful to support following syntax in redis.conf:
save 172800 1 # save snapshot every two days
At the moment it will raise:
*** FATAL CONFIG FILE ERROR ***
Reading the configuration file, at line 85
>>> 'save 172800 1 # save snapshot every two days'
Bad directive or wrong number of arguments
Writing comments after directives feels usual and natural in similar config files syntax. Redis being unable to parse them seems unexpected behaviour.
Allow comments after config directives
Closing as "not allowed by design."
Reference: "Redis semantics explicitly forbid comments on the same lines as config directives in order for the config rewrite process to be easily able to retain comments (that are guaranteed to be in different lines) in the rewritten file using simple logic."