protected function cache($path, $parameters, $response) { if (isset($response['lastModified'])) { $response['lastModified'] = round($response['lastModified'] / 1000); } $response['cachedAt'] = time(); $cache = json_encode($response); $this->client->getCache()->setCachedResponse($path, $parameters, $cache); }