PHP code example of palanik / slim-apc-cache

1. Go to this page and download the library: Download palanik/slim-apc-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/ */

    

palanik / slim-apc-cache example snippets



 = new \Slim\Slim();

use palanik\SlimAPCCache\SlimAPCCache;

$app->add(new SlimAPCCache(array(
			'ttl' => 60,
			'caching_prefix' => 'myapp_',
			)));
			
$app->get('/foo', function () use ($app) {
    echo "Hello Bar";
});

$app->run();