PHP Libraries › symfony › cache Symfony Cache component provides a unified way to cache different types of data in PHP applications efficiently and easily.
Package Description Symfony Cache component offers a comprehensive caching system for storing and retrieving data in PHP projects. It supports various caching backends and provides features such as TTL management, cache tagging, and cache invalidation strategies. With Symfony Cache, developers can enhance the performance and scalability of their applications by utilizing a flexible and robust caching solution.
Classes: Symfony\Component\Cache\Messenger\EarlyExpirationHandler Symfony\Component\Cache\Messenger\EarlyExpirationDispatcher Symfony\Component\Cache\Messenger\EarlyExpirationMessage Symfony\Component\Cache\DependencyInjection\CacheCollectorPass Symfony\Component\Cache\DependencyInjection\CachePoolPrunerPass Symfony\Component\Cache\DependencyInjection\CachePoolClearerPass Symfony\Component\Cache\DependencyInjection\CachePoolPass Symfony\Component\Cache\PruneableInterface Symfony\Component\Cache\DataCollector\CacheDataCollector Symfony\Component\Cache\ResettableInterface Symfony\Component\Cache\Adapter\RedisAdapter Symfony\Component\Cache\Adapter\CouchbaseCollectionAdapter Symfony\Component\Cache\Adapter\TraceableAdapter Symfony\Component\Cache\Adapter\TraceableAdapterEvent Symfony\Component\Cache\Adapter\AbstractTagAwareAdapter Symfony\Component\Cache\Adapter\MemcachedAdapter Symfony\Component\Cache\Adapter\TagAwareAdapterInterface Symfony\Component\Cache\Adapter\Psr16Adapter Symfony\Component\Cache\Adapter\PdoAdapter Symfony\Component\Cache\Adapter\DoctrineDbalAdapter Symfony\Component\Cache\Adapter\FilesystemTagAwareAdapter Symfony\Component\Cache\Adapter\RedisTagAwareAdapter Symfony\Component\Cache\Adapter\ApcuAdapter Symfony\Component\Cache\Adapter\ProxyAdapter Symfony\Component\Cache\Adapter\FilesystemAdapter Symfony\Component\Cache\Adapter\AdapterInterface Symfony\Component\Cache\Adapter\ChainAdapter Symfony\Component\Cache\Adapter\ArrayAdapter Symfony\Component\Cache\Adapter\NullAdapter Symfony\Component\Cache\Adapter\ParameterNormalizer Symfony\Component\Cache\Adapter\AbstractAdapter Symfony\Component\Cache\Adapter\TraceableTagAwareAdapter Symfony\Component\Cache\Adapter\TagAwareAdapter Symfony\Component\Cache\Adapter\CouchbaseBucketAdapter Symfony\Component\Cache\Adapter\PhpArrayAdapter Symfony\Component\Cache\Adapter\PhpFilesAdapter Symfony\Component\Cache\Adapter\LazyValue Symfony\Component\Cache\CacheItem Symfony\Component\Cache\Marshaller\TagAwareMarshaller Symfony\Component\Cache\Marshaller\MarshallerInterface Symfony\Component\Cache\Marshaller\DeflateMarshaller Symfony\Component\Cache\Marshaller\DefaultMarshaller Symfony\Component\Cache\Marshaller\SodiumMarshaller Symfony\Component\Cache\Exception\InvalidArgumentException Symfony\Component\Cache\Exception\CacheException Symfony\Component\Cache\Exception\LogicException Symfony\Component\Cache\Exception\BadMethodCallException Symfony\Component\Cache\Traits\RedisTrait Symfony\Component\Cache\Traits\Redis6Proxy Symfony\Component\Cache\Traits\RedisCluster6ProxyTrait Symfony\Component\Cache\Traits\RelayClusterProxy Symfony\Component\Cache\Traits\RelayProxy Symfony\Component\Cache\Traits\RedisProxyTrait Symfony\Component\Cache\Traits\RelayProxyTrait Symfony\Component\Cache\Traits\RedisProxy Symfony\Component\Cache\Traits\Redis6ProxyTrait Symfony\Component\Cache\Traits\RedisCluster5Proxy Symfony\Component\Cache\Traits\Relay\GeosearchTrait Symfony\Component\Cache\Traits\Relay\MoveTrait Symfony\Component\Cache\Traits\Relay\NullableReturnTrait Symfony\Component\Cache\Traits\Relay\CopyTrait Symfony\Component\Cache\Traits\Relay\PfcountTrait Symfony\Component\Cache\Traits\Relay\GetrangeTrait Symfony\Component\Cache\Traits\Relay\HsetTrait Symfony\Component\Cache\Traits\Redis5Proxy Symfony\Component\Cache\Traits\RedisCluster6Proxy Symfony\Component\Cache\Traits\RedisClusterProxy Symfony\Component\Cache\Traits\ProxyTrait Symfony\Component\Cache\Traits\RedisClusterNodeProxy Symfony\Component\Cache\Traits\ContractsTrait Symfony\Component\Cache\Traits\AbstractAdapterTrait Symfony\Component\Cache\Traits\FilesystemCommonTrait Symfony\Component\Cache\Traits\FilesystemTrait Symfony\Component\Cache\Psr16Cache Symfony\Component\Cache\LockRegistry Close Previous Versions v7.2.4 v7.2.5 - Coming soon v7.2.6 - Coming soonCode Integration Example Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/cache/7.3.0/loader.php';
require_once 'libs/symfony/polyfill-php73/{lib_version}/loader.php';
use Symfony\Component\Cache\Adapter\ArrayAdapter;
use Symfony\Component\Cache\Adapter\MemcachedAdapter;
use Symfony\Component\Cache\Adapter\FilesystemAdapter;
$obj = new ArrayAdapter();
echo '✅ Test OK: ' . get_class($obj);
?>
Report a broken download or code We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion Ask questions, share tips, or report issues below.