PHP Class Bluz\Cache\Adapter\Predis

Author: Anton Shevchuk
Inheritance: extends AbstractAdapter
Afficher le fichier Open project: bluzphp/framework

Protected Properties

Свойство Type Description
$handler instance
$settings default settings

Méthodes publiques

Méthode Description
__construct ( array $settings = [] ) Check and setup Redis server
getHandler ( ) : Redis Get Redis handler

Méthodes protégées

Méthode Description
doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean
doContains ( string $id ) : boolean
doDelete ( string $id ) : integer
doFlush ( )
doGet ( string $id ) : boolean | mixed | string
doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean

Method Details

__construct() public méthode

Check and setup Redis server
public __construct ( array $settings = [] )
$settings array

doAdd() protected méthode

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

doContains() protected méthode

protected doContains ( string $id ) : boolean
$id string
Résultat boolean

doDelete() protected méthode

protected doDelete ( string $id ) : integer
$id string
Résultat integer Number of keys deleted.

doFlush() protected méthode

protected doFlush ( )

doGet() protected méthode

protected doGet ( string $id ) : boolean | mixed | string
$id string
Résultat boolean | mixed | string

doSet() protected méthode

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

getHandler() public méthode

Get Redis handler
public getHandler ( ) : Redis
Résultat Redis

Property Details

$handler protected_oe property

instance
protected $handler

$settings protected_oe property

default settings
protected $settings