The server has following functionalities:
-
Writes a file to server with or without without expiry time. The file contents are updated if it laready exists.
-
Takes read request and sent the contents or the error message to the client.
-
Takes cas(compare and swap) request. Updates the version and the contents, if the version number matches. Updated vesion number is sent to the client.
-
Delete a file, if it alreay exists. Send an error otherwise.