The difference between add and put is same as in any API.
If you try to insert an element with key that already exist using the put
function it will trigger and update of the existing element, however if you use the add
function and element with same id exist you will get an error with the following message: “Key already exists in the object store.”