This adapter store sessions in Aerospike
use Phalcon\Session\Adapter\Aerospike as AerospikeSession;
$session = new AerospikeSession([
'hosts' => [
['addr' => '127.0.0.1', 'port' => 3000]
],
'persistent' => true,
'namespace' => 'test',
'prefix' => 'session_',
'lifetime' => 8600,
'uniqueId' => '3Hf90KdjQ18',
'options' => [
\Aerospike::OPT_CONNECT_TIMEOUT => 1250,
\Aerospike::OPT_WRITE_TIMEOUT => 1500
]
]);
$session->start();
$session->set('var', 'some-value');
echo $session->get('var');