File Data store is a CLI application that is capable of storing, retrieving and deleting JSON objects in a CSV file. It has the capability of autodeletion when the expiry date of a certain passes its time.
- go version go1.13.8 linux/amd64
- Linux based OS
Other Constraits are:
- The size of the file must not exceed 1GB.
- Must be thread safe
- Key must be below 32 chars and JSON object size must not exceed 16KB.
- Create: This operation is used to store a JSON object. The input needed are key(unique), JSON, time to live(Optional).
- Read: This operation is used to read a JSON object from the file. The input needed is a Key.
- Delete: This operation is used to delete a JSON object. The input needed are needed is a Key.
- Exit: This operation is used to from the application
I have implemented an expiry date function which deletes the key along with its other data. I am finding a little bit issue to synchronize it.
Thanks to Freshworks for this wonderful opportunity and I hope I can learn and work more from there.