1. Go to this page and download the library: Download emaphp/simplecache 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/ */
emaphp / simplecache example snippets
use SimpleCache\APCProvider;
//create provider
$provider = new APCProvider();
//store value
$provider->store("SimpleCache example", "message", 60);
//obtain value
$message = $provider->fetch('message');
//delete value from cache
$provider->delete('message');
//check for presence
$provider->exists('message'); // returns false
//memcache
use SimpleCache\MemcacheProvider;
$provider = new MemcacheProvider('localhost', 11211);
//memcached
use SimpleCache\MemcachedProvider;
$provider = new MemcachedProvider();
$provider->addServer('localhost', 11211);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.