PHP code example of maykonn / codeigniter-predis

1. Go to this page and download the library: Download maykonn/codeigniter-predis 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/ */

    

maykonn / codeigniter-predis example snippets




$this->redis = new \CI_Predis\Redis(['serverName' => 'default']);

echo $this->redis->ping();