PHP Class Bluz\Cache\Adapter\AbstractAdapter

Author: murzik
Inheritance: implements Bluz\Cache\CacheInterface
Afficher le fichier Open project: bluzphp/framework Class Usage Examples

Protected Properties

Свойство Type Description
$settings list of Cache settings

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
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

Method Details

__construct() public méthode

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

add() public méthode

public add ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
Résultat boolean

contains() public méthode

public contains ( string $id ) : boolean
$id string
Résultat boolean

delete() public méthode

public delete ( string $id ) : mixed
$id string
Résultat mixed

doAdd() abstract protected méthode

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::add() goes here
See also: CacheInterface::add()
abstract protected doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed
$id string
$data mixed
$ttl integer
Résultat mixed

doContains() abstract protected méthode

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::contains() goes here
See also: CacheInterface::contains()
abstract protected doContains ( string $id ) : mixed
$id string
Résultat mixed

doDelete() abstract protected méthode

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::delete() goes here
See also: CacheInterface::delete()
abstract protected doDelete ( string $id ) : mixed
$id string
Résultat mixed

doFlush() abstract protected méthode

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::flush() goes here
See also: Bluz\Cache\CacheInterface::flush()
abstract protected doFlush ( ) : mixed
Résultat mixed

doGet() abstract protected méthode

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::get() goes here
See also: CacheInterface::get()
abstract protected doGet ( string $id ) : mixed
$id string
Résultat mixed

doSet() abstract protected méthode

Must be implemented in particular cache driver implementation Actual work for \Bluz\Cache\CacheInterface::set() goes here
See also: CacheInterface::set()
abstract protected doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : mixed
$id string
$data mixed
$ttl integer
Résultat mixed

flush() public méthode

public flush ( ) : mixed
Résultat mixed

get() public méthode

public get ( string $id ) : mixed
$id string
Résultat mixed

set() public méthode

public set ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
$id string
$data mixed
$ttl integer
Résultat boolean

Property Details

$settings protected_oe property

list of Cache settings
protected $settings