CRD-datastore

The data store will support the following :

  1.A new key-value pair can be added to the data store using the Create operation. The key is always a string - capped at 32chars. The value is always a JSON object - capped at 16KB. 
  2.If Create is invoked for an existing key, an appropriate error must be returned.
  3.A Read operation on a key can be performed by providing the key, and receiving the value in response, as a JSON object.
  4.A Delete operation can be performed by providing the key. 
  5.Every key supports setting a Time-To-Live property when it is created. This property is optional. If provided, it will be evaluated as an integer defining the number of seconds 6.the key must be retained in the data store. Once the Time-To-Live for a key has expired, the key will no longer be available for Read or Delete operations.
  7.Appropriate error responses must always be returned to a client if it uses the data store in unexpected ways or breaches any limits 
  8.The file size never exceeds 1GB 
  9.The file is accessed by multi-threading 
  10.Go through the accessing.py file and examples.pdf file that are attached here with in order to understand clearly how the code works and how to perform operations in this. 11.More than one client process cannot be allowed to use the same file as data store at any given time.

The client will bear as little memory costs as possible to use this data store,while deriving maximum performance with respect to response times for accessing the data store