PHP 클래스 chobie\Jira\Api\Client\MemcacheProxyClient

상속: implements chobie\Jira\Api\Client\ClientInterface
파일 보기 프로젝트 열기: chobie/jira-api-restclient

보호된 프로퍼티들

프로퍼티 타입 설명
$client chobie\Jira\Api\Client\ClientInterface Client.
$mc Memcached Memcache.

공개 메소드들

메소드 설명
__construct ( chobie\Jira\Api\Client\ClientInterface $client, string $server, integer $port ) Create wrapper around other client.
sendRequest ( string $method, string $url, array $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string Sends request to the API server.

보호된 메소드들

메소드 설명
getFromCache ( string $url, array $data, string $endpoint ) : mixed Retrieves data from cache.
setCache ( string $url, array $data, string $endpoint, mixed $result ) : boolean Sets data into cache.

메소드 상세

__construct() 공개 메소드

Create wrapper around other client.
public __construct ( chobie\Jira\Api\Client\ClientInterface $client, string $server, integer $port )
$client chobie\Jira\Api\Client\ClientInterface Client.
$server string Server.
$port integer Port.

getFromCache() 보호된 메소드

Retrieves data from cache.
protected getFromCache ( string $url, array $data, string $endpoint ) : mixed
$url string URL.
$data array Data.
$endpoint string Endpoint.
리턴 mixed

sendRequest() 공개 메소드

Sends request to the API server.
public sendRequest ( string $method, string $url, array $data = [], string $endpoint, chobie\Jira\Api\Authentication\AuthenticationInterface $credential, boolean $is_file = false, boolean $debug = false ) : array | string
$method string Request method.
$url string URL.
$data array Request data.
$endpoint string Endpoint.
$credential chobie\Jira\Api\Authentication\AuthenticationInterface Credential.
$is_file boolean This is a file upload request.
$debug boolean Debug this request.
리턴 array | string

setCache() 보호된 메소드

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.
리턴 boolean

프로퍼티 상세

$client 보호되어 있는 프로퍼티

Client.
protected ClientInterface,chobie\Jira\Api\Client $client
리턴 chobie\Jira\Api\Client\ClientInterface

$mc 보호되어 있는 프로퍼티

Memcache.
protected Memcached $mc
리턴 Memcached