egorov/yii2-tarantool

Yii 2 session in Tarantool db

Installs: 14

Dependents: 0

Suggesters: 0

Security: 0

Type:yii-extension

1.0.8 2018-09-06 14:47 UTC

This package is auto-updated.

Last update: 2024-03-21 22:03:28 UTC


README

Yii 2 session in Tarantool db

 ...
 components => [  
     ...  
     'session' => [
         // 'class' => CHttpSession::class,
         'class' => Tarantool\Session\Session::class,
         'sessionSpace'=>'Session',
         'server' => "tcp://sid_tarantool:3301",
         'socket_timeout' => 5.0,
         'connect_timeout' => 5.0,
         'tcp_nodelay' => true,
         'sessionStorage' => Tarantool\Session\Session::STORAGE_DISC, // or STORAGE_MEMORY
         'packer' => Tarantool\Session\Session::PACKER_PURE, // or PACKER_PECL
         'username' => 'tarantool',
         'password' => 'password'
     ],
     ...  
 ]  
 ...