PHP 클래스 Pop\Cache\Adapter\Memcached

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Cache\Adapter\AdapterInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$memcache Pop\Cache\Adapter\Memcache Memcache object
$version string Memcache version

공개 메소드들

메소드 설명
__construct ( string $host = 'localhost', integer $port = 11211 ) : Memcached Constructor
clear ( ) : void Method to clear all stored values from cache.
getVersion ( ) : string Method to get the current version of memcache.
load ( string $id, string $time ) : mixed Method to load a value from cache.
remove ( string $id ) : void Method to delete a value in cache.
save ( string $id, mixed $value, string $time ) : void Method to save a value to cache.

메소드 상세

__construct() 공개 메소드

Instantiate the memcache cache object
public __construct ( string $host = 'localhost', integer $port = 11211 ) : Memcached
$host string
$port integer
리턴 Memcached

clear() 공개 메소드

Method to clear all stored values from cache.
public clear ( ) : void
리턴 void

getVersion() 공개 메소드

Method to get the current version of memcache.
public getVersion ( ) : string
리턴 string

load() 공개 메소드

Method to load a value from cache.
public load ( string $id, string $time ) : mixed
$id string
$time string
리턴 mixed

remove() 공개 메소드

Method to delete a value in cache.
public remove ( string $id ) : void
$id string
리턴 void

save() 공개 메소드

Method to save a value to cache.
public save ( string $id, mixed $value, string $time ) : void
$id string
$value mixed
$time string
리턴 void

프로퍼티 상세

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

Memcache object
protected Memcache,Pop\Cache\Adapter $memcache
리턴 Pop\Cache\Adapter\Memcache

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

Memcache version
protected string $version
리턴 string