Yii2-ssdb - a Yii 2.0 SSDB extension
Yii 2.0 or above
The preferred way to install this extension is through composer.
php composer.phar require 'ijackwu/yii2-ssdb:dev-master'
To use this extension, you have to configure the Connection class in your application configuration:
return [
//....
'components' => [
'ssdb' => [
'class' => 'ijackwu\ssdb\Connection',
// or
// 'class' => 'ijackwu\ssdb\FastConnection',
// @see https://github.com/jonnywang/phpssdb
'host' => 'localhost',
'port' => 8888,
// 'password' => 'password',
],
// cache
'cache' => [
'class' => 'ijackwu\ssdb\Cache',
],
// session
'session' => [
// .....
'class' => 'ijackwu\ssdb\SsdbSession',
],
]
];