PHP Class Phalcon\Cache\Backend\Database

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

Protected Properties

Свойство Type Description
$db Phalcon\Db\AdapterInterface
$table string

Méthodes publiques

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

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

delete() public méthode

public delete ( string $keyName ) : boolean
$keyName string
Résultat boolean

exists() public méthode

public exists ( string $keyName = null, string $lifetime = null ) : boolean
$keyName string
$lifetime string
Résultat boolean

flush() public méthode

public flush ( ) : boolean
Résultat boolean

get() public méthode

public get ( string $keyName, integer $lifetime = null ) : mixed | null
$keyName string
$lifetime integer
Résultat mixed | null

queryKeys() public méthode

public queryKeys ( string $prefix = null ) : array
$prefix string
Résultat array

save() public méthode

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

Property Details

$db protected_oe property

protected AdapterInterface,Phalcon\Db $db
Résultat Phalcon\Db\AdapterInterface

$table protected_oe property

protected string $table
Résultat string