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
]
]);
ファイルを表示
Open project: phalcon/incubator
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$aerospike | |||
$namespace | string | Default Aerospike namespace | |
$set | string | The Aerospike Set for store sessions |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) |
Method | Description | |
---|---|---|
getCacheBackend ( ) : |
||
prepareKey ( string $key ) : string |
protected getCacheBackend ( ) : |
||
return |
protected prepareKey ( string $key ) : string | ||
$key | string | |
return | string |
protected Aerospike,Phalcon\Cache\Backend $aerospike | ||
return |
protected string $namespace | ||
return | string |