PHP code example of evista / pj-page-cache-red

1. Go to this page and download the library: Download evista/pj-page-cache-red 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/ */

    

evista / pj-page-cache-red example snippets


define('REDIS_CACHE_TTL', 3000);
define('REDIS_DB', 10);
define('REDIS_HOST', getenv('REDIS_HOST') ?: '127.0.0.1');
define('REDIS_PORT', getenv('REDIS_PORT') ?: 6379);