In-memory cache storage with LRU eviction when configured with a maximum number of items. Use for fast, temporary caching in applications without external dependencies.
// Source: https://github.com/symfony/symfony | License: MIT | Copyright 2004-present Fabien Potencier // Provided via justclaw.it.com; keep this notice with the code. <?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Cache\Adapter; use Psr\Cache\CacheItemInterface; use Psr\Clock\ClockInterface; use Psr\Log\LoggerAwareInterface; use Psr\Log\LoggerAwareTrait; use Symfony\Component\Cache\CacheItem; use Symfony\Component\Cache\Exception\InvalidArgumentException; use Symfony\Component\Cache\ResettableInterface; use Symfony\Component\VarExporter\DeepCloner; use Symfony\Contracts\Ca ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key