chobie\Jira\Api\Client\MemcacheProxyClient::setCache PHP Method

setCache() protected method

Sets data into cache.
protected setCache ( string $url, array $data, string $endpoint, mixed $result ) : boolean
$url string URL.
$data array Data.
$endpoint string Endpoint.
$result mixed Result.
return boolean
    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);
    }