| Current Path : /var/www/clients/client3/web2/web/lists/admin/plugins/Common/ |
| Current File : /var/www/clients/client3/web2/web/lists/admin/plugins/Common/FileCache.php |
<?php
/**
* Cache plugin for phplist.
*
* This file is a part of Cache plugin.
*
* @category phplist
*
* @author Duncan Cameron
* @copyright 2011-2023 Duncan Cameron
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, Version 3
*/
namespace phpList\plugin\Common;
class FileCache
{
private $cache;
public function __construct($name = 'phplist_cache', $defaultTTL = 3600)
{
global $tmpdir;
$this->cache = new \Kodus\Cache\FileCache($tmpdir . '/' . $name, $defaultTTL);
}
public function __call($method, array $parameters)
{
return $this->cache->{$method}(...$parameters);
}
}