PHP code example of tfhinc / ci-realredis

1. Go to this page and download the library: Download tfhinc/ci-realredis 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/ */

    

tfhinc / ci-realredis example snippets



// Use the helper method

$this->CI->load->helper('realredis');

realredis()->get('sample.key');

// Use the RealRedis class

$realredis = new TFHInc\RealRedis\RealRedis();

$realredis->get('sample.key');

// Use the RealRedis CI Library

$this->load->library('RealRedis');

$realredis->get('sample.key');
 php
$this->load->helper('realredis');
 php
$redis = new TFHInc/RealRedis/RealRedis();
 php
$this->load->library('RealRedis');