Skip to content

nickolasburr/ocache.php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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);
}

...

About

PSR-16 object cache for PHP.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages