PHP code example of kdudas / php-cache
1. Go to this page and download the library: Download kdudas/php-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/ */
kdudas / php-cache example snippets
ini_set('log_errors', 1);
ini_set('error_log', '/var/log/php-cache.log');
tor;
use PhpCache\ServiceManager\ServiceManager;
// You can import multiple config files to overwrite parameters in the basic config or add extra parameters, including dependency injection
$config =
php testServer.php
include_once('vendor/autoload.php');
use PhpCache\CacheClient\CacheClient;
use PhpCache\ServiceManager\ServiceManager;
$config = t->set('test', 'ASD');
echo $client->get('test');
php testClient.php