1. Go to this page and download the library: Download tedivm/stash-bundle 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/ */
tedivm / stash-bundle example snippets
public function registerBundles()
{
return array(
new Tedivm\StashBundle\TedivmStashBundle(),
);
}
$item = $pool->getItem($id, 'info'); // cache keys, more than one can be used
$info = $item->get();
if($item->isMiss())
{
$info = loadInfo($id);
$item->set($userInfo, 60); // second parameter is TTL (in seconds or future \Datetime object)
}
return $info;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.