function writeCachedRate(rate) {
    return new Promise((resolve, reject) => {
      context.storage.set(rate, { force: 1 }, error =>
        error ? reject(error) : resolve()
      );
    });
  }
Write given rate to webtask cache.

@see https://webtask.io/docs/storage
@param {object} rate
@return {Promise}