PHP Class Phalcon\Annotations\Adapter\Base

Base class for annotations adapters.
Inheritance: extends Phalcon\Annotations\Adapter
Afficher le fichier Open project: phalcon/incubator Class Usage Examples

Protected Properties

Свойство Type Description
$defaultLifetime array Default option for cache lifetime.
$defaultPrefix string Default option for prefix.
$options array Backend's options.

Méthodes publiques

Méthode Description
__construct ( null | array $options = null ) Class constructor.
read ( string $key ) : array
write ( string $key, array $data )

Méthodes protégées

Méthode Description
getCacheBackend ( ) : Phalcon\Cache\BackendInterface Returns cache backend instance.
prepareKey ( string $key ) : string Returns the key with a prefix or other changes

Method Details

__construct() public méthode

Class constructor.
public __construct ( null | array $options = null )
$options null | array

getCacheBackend() abstract protected méthode

Returns cache backend instance.
abstract protected getCacheBackend ( ) : Phalcon\Cache\BackendInterface
Résultat Phalcon\Cache\BackendInterface

prepareKey() abstract protected méthode

Returns the key with a prefix or other changes
abstract protected prepareKey ( string $key ) : string
$key string
Résultat string

read() public méthode

public read ( string $key ) : array
$key string
Résultat array

write() public méthode

public write ( string $key, array $data )
$key string
$data array

Property Details

$defaultLifetime protected_oe static_oe property

Default option for cache lifetime.
protected static array $defaultLifetime
Résultat array

$defaultPrefix protected_oe static_oe property

Default option for prefix.
protected static string $defaultPrefix
Résultat string

$options protected_oe property

Backend's options.
protected array $options
Résultat array