PHP Класс Bluz\Cache\Adapter\AbstractAdapter

Автор: murzik
Наследование: implements Bluz\Cache\CacheInterface
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$settings list of Cache settings

Открытые методы

Метод Описание
__construct ( array $settings = [] ) Setup adapter settings
add ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
contains ( string $id ) : boolean
delete ( string $id ) : mixed
flush ( ) : mixed
get ( string $id ) : mixed
set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean

Защищенные методы

Метод Описание
doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::add() goes here
doContains ( string $id ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::contains() goes here
doDelete ( string $id ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::delete() goes here
doFlush ( ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::flush() goes here
doGet ( string $id ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::get() goes here
doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::set() goes here

Описание методов

__construct() публичный Метод

Setup adapter settings
public __construct ( array $settings = [] )
$settings array setup adapter

add() публичный Метод

public add ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
Результат boolean

contains() публичный Метод

public contains ( string $id ) : boolean
$id string
Результат boolean

delete() публичный Метод

public delete ( string $id ) : mixed
$id string
Результат mixed

doAdd() абстрактный защищенный Метод

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::add() goes here
См. также: CacheInterface::add()
abstract protected doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed
$id string
$data mixed
$ttl integer
Результат mixed

doContains() абстрактный защищенный Метод

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::contains() goes here
См. также: CacheInterface::contains()
abstract protected doContains ( string $id ) : mixed
$id string
Результат mixed

doDelete() абстрактный защищенный Метод

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::delete() goes here
См. также: CacheInterface::delete()
abstract protected doDelete ( string $id ) : mixed
$id string
Результат mixed

doFlush() абстрактный защищенный Метод

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::flush() goes here
См. также: Bluz\Cache\CacheInterface::flush()
abstract protected doFlush ( ) : mixed
Результат mixed

doGet() абстрактный защищенный Метод

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::get() goes here
См. также: CacheInterface::get()
abstract protected doGet ( string $id ) : mixed
$id string
Результат mixed

doSet() абстрактный защищенный Метод

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::set() goes here
См. также: CacheInterface::set()
abstract protected doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed
$id string
$data mixed
$ttl integer
Результат mixed

flush() публичный Метод

public flush ( ) : mixed
Результат mixed

get() публичный Метод

public get ( string $id ) : mixed
$id string
Результат mixed

set() публичный Метод

public set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
Результат boolean

Описание свойств

$settings защищенное свойство

list of Cache settings
protected $settings