PHP Класс Phalcon\Annotations\Adapter\Aerospike

Stores the parsed annotations to the Aerospike database. This adapter is suitable for production. use Phalcon\Annotations\Adapter\Aerospike; $annotations = new Aerospike([ 'hosts' => [ ['addr' => '127.0.0.1', 'port' => 3000] ], 'persistent' => true, 'namespace' => 'test', 'prefix' => 'annotations_', 'lifetime' => 8600, 'options' => [ \Aerospike::OPT_CONNECT_TIMEOUT => 1250, \Aerospike::OPT_WRITE_TIMEOUT => 1500 ] ]);
Наследование: extends Base
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$aerospike Phalcon\Cache\Backend\Aerospike
$namespace string Default Aerospike namespace
$set string The Aerospike Set for store sessions

Открытые методы

Метод Описание
__construct ( array $options = [] )

Защищенные методы

Метод Описание
getCacheBackend ( ) : Aerospike
prepareKey ( string $key ) : string

Описание методов

__construct() публичный Метод

public __construct ( array $options = [] )
$options array Options array

getCacheBackend() защищенный Метод

protected getCacheBackend ( ) : Aerospike
Результат Phalcon\Cache\Backend\Aerospike

prepareKey() защищенный Метод

protected prepareKey ( string $key ) : string
$key string
Результат string

Описание свойств

$aerospike защищенное свойство

protected Aerospike,Phalcon\Cache\Backend $aerospike
Результат Phalcon\Cache\Backend\Aerospike

$namespace защищенное свойство

Default Aerospike namespace
protected string $namespace
Результат string

$set защищенное свойство

The Aerospike Set for store sessions
protected string $set
Результат string