PHP code example of dmitry-suffi / redis-cache

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

    

dmitry-suffi / redis-cache example snippets




$redis = new Redis();
if ($redis->connect('11.111.111.11', 6379) && $redis->select(0)) {
    $cache = new CacheItemPool($redis);
}