PHP code example of smoke / zf2-cache-storage-redis-array

1. Go to this page and download the library: Download smoke/zf2-cache-storage-redis-array 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/ */

    

smoke / zf2-cache-storage-redis-array example snippets


return array(
    'caches' => array(
        'Cache\General' => array(
            'adapter' => array(
                'name' => '\Smoke\Cache\Storage\Adapter\RedisArray'
            ),
            'options' => array(
                'servers_array' => array(
                    array('host' => 'host1'/*, 'port' => 1234*/),
                    array('host' => 'host2')
                ),
                //'lazy_connect' => true,
                //'connect_timeout' => 15
            ),
        ),
    ),
);
sh
$ php composer.phar