INSTRUCTIONS:
This code satisfies all the mentioned functional requirements for create, read, delete operations as:
- with key-value pair as string-capped at 32 chars.
- with value as JSON Object capped at 16KB.
- all possible error messages.
- with "time-to-live" properpty(optional) with all mentioned conditions.
And non-functional requirements as follows:
- Satisfies file size of <= 1GB
- Only one client is allowed at a time
- It is a thread-safe i.e. it allows to access the datastore using multiple threads.
- Uses less memory.
In this "Freshworks - Engineering - Assignment1.ipynb" file, File Concept is used as follows:
- File "data.py" is created in the parent directory in which this file is present.
- First of all, file "data.py" is created for create function with specified values.
- Then it reads data from the file.
- At last it leaves the file with empty dictionary and deletes all the performed functionality.
Requirements:
- Python should be of version 3.x or above.
- Otherwise use "import thread" for importing thread library for python2.0 version.