PHP Class 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 ] ]);
Inheritance: extends Base
Mostrar archivo Open project: phalcon/incubator Class Usage Examples

Protected Properties

Property Type Description
$aerospike Phalcon\Cache\Backend\Aerospike
$namespace string Default Aerospike namespace
$set string The Aerospike Set for store sessions

Public Methods

Method Description
__construct ( array $options = [] )

Protected Methods

Method Description
getCacheBackend ( ) : Aerospike
prepareKey ( string $key ) : string

Method Details

__construct() public method

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

getCacheBackend() protected method

protected getCacheBackend ( ) : Aerospike
return Phalcon\Cache\Backend\Aerospike

prepareKey() protected method

protected prepareKey ( string $key ) : string
$key string
return string

Property Details

$aerospike protected_oe property

protected Aerospike,Phalcon\Cache\Backend $aerospike
return Phalcon\Cache\Backend\Aerospike

$namespace protected_oe property

Default Aerospike namespace
protected string $namespace
return string

$set protected_oe property

The Aerospike Set for store sessions
protected string $set
return string