PHP code example of dcb9 / yii2-phpredis
1. Go to this page and download the library: Download dcb9/yii2-phpredis 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/ */
dcb9 / yii2-phpredis example snippets
return [
//....
'components' => [
'redis' => [
'class' => 'dcb9\redis\Connection',
'hostname' => 'localhost',
'port' => 6379,
'database' => 0,
],
]
];
$ cp tests/config.php tests/config-local.php
$ vim tests/config-local.php
$ php tests/performance.php