PHP code example of ijackwu / yii2-ssdb

1. Go to this page and download the library: Download ijackwu/yii2-ssdb library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ijackwu / yii2-ssdb example snippets


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',
        ],
        
    ]
];

php composer.phar