Inserts a new item into the cache. Inserting an entry with an id that is already present will cause the old value to be overwritten.