__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace PhpMyAdmin\MoTranslator\Cache;
use PhpMyAdmin\MoTranslator\MoParser;
final class ApcuCacheFactory implements CacheFactoryInterface
{
/** @var int */
private $ttl;
/** @var bool */
private $reloadOnMiss;
/** @var string */
private $prefix;
public function __construct(int $ttl = 0, bool $reloadOnMiss = true, string $prefix = 'mo_')
{
$this->ttl = $ttl;
$this->reloadOnMiss = $reloadOnMiss;
$this->prefix = $prefix;
}
public function getInstance(MoParser $parser, string $locale, string $domain): CacheInterface
{
return new ApcuCache($parser, $locale, $domain, $this->ttl, $this->reloadOnMiss, $this->prefix);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| ApcuCache.php | File | 3.72 KB | 0644 |
|
| ApcuCacheFactory.php | File | 741 B | 0644 |
|
| CacheFactoryInterface.php | File | 249 B | 0644 |
|
| CacheInterface.php | File | 832 B | 0644 |
|
| GetAllInterface.php | File | 195 B | 0644 |
|
| InMemoryCache.php | File | 999 B | 0644 |
|