PHP Класс Pop\Cache\Adapter\Memcached

Автор: Nick Sagona, III ([email protected])
Наследование: implements Pop\Cache\Adapter\AdapterInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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