updateMediaCache(media, cb) {
      if (!media.length) {
        return cb(null, media)
      }
      const firstMedia = media[0]
      const cacheFilename = getMediaCacheFilename(firstMedia)
      storageUpdateMediaCache(storageDir, cacheFilename, media, cb)
    }
Write all media to cache file

@param {any[]} media List of media
@param {function} cb