1. Go to this page and download the library: Download kasseler/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/ */
kasseler / cache example snippets
$cache = new Cache(new ArrayCache());
$cache->set('foo', [1,2,3,4,5]);
if ($cache->has('foo')) {
var_export($cache->get('foo')->data());
}
$cache->drop();
$cache = new Cache(new ArrayCache());
$cache = new Cache(new ApcCache());
$cache = new Cache(new FileCache());
$cache = new Cache(new MemcacheCache());
$cache = new Cache(new MemcachedCache());
$cache = new Cache(new MongoDBCache());
$cache = new Cache(new PredisCache());
$cache = new Cache(new RedisCache());
$cache = new Cache(new SessionCache());
$cache = new Cache(new SQLite3Cache());
$cache = new Cache(new VoidCache());
$cache = new Cache(new XcacheCache());
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.