nickolasburr / ocache.php
PSR-16 object cache for PHP.
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/nickolasburr/ocache.php
Requires
- php: ^8.2
 - psr/simple-cache: ^2.0||^3.0
 - symfony/var-exporter: ^7.2
 
This package is auto-updated.
Last update: 2025-11-04 05:37:29 UTC
README
Description
PSR-16 object cache for PHP.
Installation
composer require nickolasburr/ocache.php:^1.0
Examples
... use function Ocache\cache; $cache = cache(); $entry = $cache->get('example'); if ($entry === null) { $entry = new \ArrayIterator(range(0, 10)); $cache->set('example', $entry); } ...