PHP Class Phalcon\Cache\Backend\Database

This backend uses a database as cache backend
Inheritance: extends Phalcon\Cache\Backend, implements Phalcon\Cache\BackendInterface
Mostra file Open project: phalcon/incubator Class Usage Examples

Protected Properties

Property Type Description
$db Phalcon\Db\AdapterInterface
$table string

Public Methods

Method Description
__construct ( Phalcon\Cache\FrontendInterface $frontend, array $options )
delete ( string $keyName ) : boolean
exists ( string $keyName = null, string $lifetime = null ) : boolean
flush ( ) : boolean
get ( string $keyName, integer $lifetime = null ) : mixed | null
queryKeys ( string $prefix = null ) : array
save ( string $keyName = null, string $content = null, integer $lifetime = null, boolean $stopBuffer = true ) : boolean

Method Details

__construct() public method

public __construct ( Phalcon\Cache\FrontendInterface $frontend, array $options )
$frontend Phalcon\Cache\FrontendInterface
$options array

delete() public method

public delete ( string $keyName ) : boolean
$keyName string
return boolean

exists() public method

public exists ( string $keyName = null, string $lifetime = null ) : boolean
$keyName string
$lifetime string
return boolean

flush() public method

public flush ( ) : boolean
return boolean

get() public method

public get ( string $keyName, integer $lifetime = null ) : mixed | null
$keyName string
$lifetime integer
return mixed | null

queryKeys() public method

public queryKeys ( string $prefix = null ) : array
$prefix string
return array

save() public method

public save ( string $keyName = null, string $content = null, integer $lifetime = null, boolean $stopBuffer = true ) : boolean
$keyName string
$content string
$lifetime integer
$stopBuffer boolean
return boolean

Property Details

$db protected_oe property

protected AdapterInterface,Phalcon\Db $db
return Phalcon\Db\AdapterInterface

$table protected_oe property

protected string $table
return string