Adding first impmenetations for getall and put APIs
Also added common locking mechanism to be used for write operations