Вход Регистрация
Файл: upload/core/vendor/twig/twig/src/Cache/NullCache.php
Строк: 45
<?php

/*
 * This file is part of Twig.
 *
 * (c) Fabien Potencier
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace TwigCache;

/**
 * Implements a no-cache strategy.
 *
 * @author Fabien Potencier <fabien@symfony.com>
 */
final class NullCache implements CacheInterfaceRemovableCacheInterface
{
    public function 
generateKey(string $namestring $className): string
    
{
        return 
'';
    }

    public function 
write(string $keystring $content): void
    
{
    }

    public function 
load(string $key): void
    
{
    }

    public function 
getTimestamp(string $key): int
    
{
        return 
0;
    }

    public function 
remove(string $namestring $cls): void
    
{
    }
}
Онлайн: 1
Реклама