nickolasburr / vfscache
VFS object cache for PHP.
1.0.0
2023-05-18 02:05 UTC
Requires
- php: ^8.1
- psr/simple-cache: ^2.0||^3.0
- symfony/var-exporter: ~6.2
This package is auto-updated.
Last update: 2024-04-23 00:27:40 UTC
README
- local
Description
VFS object cache for PHP.
Installation
composer require nickolasburr/vfscache:^1.0
Examples
... use function VfsCache\cache; $cache = cache(); $entry = $cache->get('example'); if ($entry === null) { $entry = new \ArrayIterator(range(0, 10)); $cache->set('example', $entry); } ...