protected function setCache($url, array $data, $endpoint, $result) { $key = $endpoint . $url; $key .= http_build_query($data); $key = sha1($key); return $this->mc->set('jira:cache:' . $key, $result, 86400); }