Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 463 Bytes

README.rst

File metadata and controls

35 lines (22 loc) · 463 Bytes

ocache.php

PSR-16 object cache for PHP.

composer require nickolasburr/ocache.php:^1.0
...

use function Ocache\cache;

$cache = cache();
$entry = $cache->get('example');

if ($entry === null) {
    $entry = new \ArrayIterator(range(0, 10));
    $cache->set('example', $entry);
}

...