se7enxweb / expcomponents-cache
A solution for caching, supporting multiple backends allowing you to specify the best performing solution for your caching-problem.
Requires
- php: >=7.1
- se7enxweb/expcomponents-base: ~1.8
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
- zetacomponents/cache: 1.6.5
This package is auto-updated.
Last update: 2026-11-27 08:44:30 UTC
README
A solution for caching, supporting multiple backends allowing you to specify the best performing solution for your caching-problem.
This is the Exponential Components fork of zetacomponents/Cache,
maintained by 7x (se7en.x) and the Exponential Foundation for Exponential and anyone else
who uses the Zeta Components Cache component on current PHP versions. All credit for the
component goes to the Zeta Components authors listed in composer.json and CREDITS;
the upstream copyright notices (NOTICE) and the Apache License 2.0 (LICENSE.txt)
are kept unchanged.
What is different from upstream
- The package is
se7enxweb/expcomponents-cacheand replaceszetacomponents/cache, so a project that requires the upstream package gets this one in its place. - It requires the Exponential forks of the components it builds on (
se7enxweb/expcomponents-base), which replace their upstream packages in the same way. - The class names (
ezc*) and the API are unchanged. - Two storages use the APCu user cache:
ezcCacheStorageApcuPlainandezcCacheStorageFileApcuArray. They need theapcuextension, and on the command lineapc.enable_cli=1; without the extension their constructors throwezcBaseExtensionNotFoundException. - The APC storages (
ezcCacheStorageApcPlain,ezcCacheStorageFileApcArray) keep calling theapc_*()functions. They need theapcextension, on PHP 7 theapcu_bccompatibility layer next toapcu; PHP 8 has neither, use the APCu storages there. - Changes made in this fork are listed in
ChangeLog.
Installation
composer require se7enxweb/expcomponents-cache
Tests
composer update vendor/bin/phpunit
The suite runs on every push for PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 and 8.5.
License
Apache License 2.0, see LICENSE.txt and NOTICE.