PHP Class Bluz\Cache\Adapter\PhpFile

It can cache data that support var_export. This adapter very fast and cacheable by opcode cachers but it have some limitations related to var_export. It's best to use for scalar data caching
Inheritance: extends FileBase
Show file Open project: bluzphp/framework

Protected Properties

Property Type Description
$data cache data

Protected Methods

Method Description
doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean | integer
doContains ( string $id ) : boolean
doGet ( string $id ) : boolean | mixed
doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : integer

Method Details

doAdd() protected method

protected doAdd ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : boolean | integer
$id string
$data mixed
$ttl integer
return boolean | integer

doContains() protected method

protected doContains ( string $id ) : boolean
$id string
return boolean

doGet() protected method

protected doGet ( string $id ) : boolean | mixed
$id string
return boolean | mixed

doSet() protected method

protected doSet ( string $id, mixed $data, integer $ttl = Cache::TTL_NO_EXPIRY ) : integer
$id string
$data mixed
$ttl integer
return integer The number of bytes that were written to the file, or false on failure.

Property Details

$data protected property

cache data
protected $data