PHP code example of sunmoon / yiiredis
1. Go to this page and download the library: Download sunmoon/yiiredis 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/ */
sunmoon / yiiredis example snippets
return [
//....
'components' => [
'redis' => [
'class' => 'sunmoon\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