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
]
]);
Показать файл
Открыть проект
Примеры использования класса
Свойство | Тип | Описание | |
---|---|---|---|
$aerospike | |||
$namespace | string | Default Aerospike namespace | |
$set | string | The Aerospike Set for store sessions |
Метод | Описание | |
---|---|---|
__construct ( array $options = [] ) |
Метод | Описание | |
---|---|---|
getCacheBackend ( ) : |
||
prepareKey ( string $key ) : string |
public __construct ( array $options = [] ) | ||
$options | array | Options array |
protected getCacheBackend ( ) : |
||
Результат |
protected prepareKey ( string $key ) : string | ||
$key | string | |
Результат | string |
protected Aerospike,Phalcon\Cache\Backend $aerospike | ||
Результат |
protected string $namespace | ||
Результат | string |
protected string $set | ||
Результат | string |