PHP code example of devsdmf / silex-zend-cache-provider
1. Go to this page and download the library: Download devsdmf/silex-zend-cache-provider 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/ */
devsdmf / silex-zend-cache-provider example snippets
use Silex\Application;
use Silex\Provider\ZendCacheServiceProvider;
$app = new Application();
// Your application setup
$app->register(new ZendCacheServiceProvider(), array(
'cache.options'=>array(
'zendcache'=>array(
'factory'=>array(
// Your ZendCache factory configuration
),
'options'=>array(
// Your options for ZendCache
),
),
),
));
// Using cache
$app['cache'];