Develop the SAVE command to manage the configuration of the save signal for the data persistence worker. This command will allow users to specify conditions under which the dataset is automatically dumped to disk. For example, the command save 60 1000 should configure the system to dump the dataset every 60 seconds if at least 1000 keys have changed.
Requirements:
- Implement the
SAVE command with the following functionalities:
- Allow configuration in the format
save <seconds> <changes>.
- The system should automatically trigger the save signal to the worker based on this configuration.
- If the
SAVE command is called without additional arguments, it should immediately trigger a save signal to the worker.
- If no
SAVE command is not set, the RDP worker should not run to save the files automatically.
Acceptance Criteria:
Additional Notes:
- Ensure the implementation integrates seamlessly with the existing RDP worker.
- Consider edge cases, such as conflicting configurations or improper usage of the
SAVE command.
Develop the
SAVEcommand to manage the configuration of the save signal for the data persistence worker. This command will allow users to specify conditions under which the dataset is automatically dumped to disk. For example, the commandsave 60 1000should configure the system to dump the dataset every 60 seconds if at least 1000 keys have changed.Requirements:
SAVEcommand with the following functionalities:save <seconds> <changes>.SAVEcommand is called without additional arguments, it should immediately trigger a save signal to the worker.SAVEcommand is not set, the RDP worker should not run to save the files automatically.Acceptance Criteria:
SAVEcommand can configure automatic dataset dumps based on the specified conditions.SAVEcommand configuration.SAVEwithout arguments triggers an immediate save signal.SAVEcommand is set, the worker does not attempt to save files.Additional Notes:
SAVEcommand.