Registry / utility / laminas-laminas-cache

laminas-laminas-cache

JSON →
library4.3.0phppackagistunverified

Provides caching with multiple storage backends and strategies.

composer require laminas/laminas-cache
INSTALL
IMPORT
SIG · LAMINAS-LAMINAS-CA
L
laminas-laminas-cache
utilityphpv4.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StorageFactory
use Laminas\Cache\StorageFactory;

Creates a filesystem cache and stores/retrieves a value.

use Laminas\Cache\StorageFactory; $cache = StorageFactory::factory([ 'adapter' => 'filesystem', 'options' => ['cache_dir' => '/tmp/cache'], ]); $cache->setItem('key', 'value'); echo $cache->getItem('key');
Debug
Known issues
breakingVersion 4.x requires PHP 8.1+
fix
Use version 3.x for PHP 8.0.
affects: >=4.0.0
Upgrade
Version history
4.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
laminas-laminas-cache — pip install laminas-laminas-cache · libregistry