Registry / caching / nette-caching

nette-caching

JSON →
library3.4.2phppackagistunverified

Nette Caching: library with easy-to-use API and many cache backends.

composer require nette/caching
INSTALL
IMPORT
SIG · NETTE-CACHING
N
nette-caching
cachingphpv3.4.2
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.

Cache
use Nette\Caching\Cache;

Store and retrieve a cached value with expiration.

use Nette\Caching\Cache; use Nette\Caching\Storages\FileStorage; $storage = new FileStorage('/path/to/cache'); $cache = new Cache($storage); $cache->save('key', 'value', [Cache::EXPIRE => '20 minutes']); echo $cache->load('key'); // 'value'
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.4.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
Resources
nette-caching — pip install nette-caching · libregistry