dist/storageEngine/MemoryStorageEngine.js
/**
     * Upsert an object into the cache
     * @param id id of the object
     * @param updateData the new Data which get's merged with the old
     */
Upsert an object into the cache
@param id id of the object
@param updateData the new Data which get's merged with the old
Upsert an object into the cache @param id id of the object @param updateData the new Data which get ' s merged with the old
upsert(id, updateData) {
        const data = this.get(id);
        const newData = data || {};
        Object.assign(newData, updateData);
        const prepared = this.prepareData(newData);
        this.map.set(id, prepared);
    }
upsert ( id , updateData ) { const data = this . get ( id ) ; const newData = data || { } ; Object . assign ( newData , updateData ) ; const prepared = this . prepareData ( newData ) ; this . map . set ( id , prepared ) ; }
Upsert an object into the cache
 @param id id of the object
 @param updateData the new Data which get's merged with the old
Upsert an object into the cache @param id id of the object @param updateData the new Data which get ' s merged with the old