| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Light, simple and standalone PHP in-file caching class
You need PHP 7.4+ for usage
Require with composer:
composer require flightphp/cache<?php
use flight\Cache;
require_once __DIR__ . "/vendor/autoload.php";
$cache = new Cache();
$data = $cache->refreshIfExpired("simple-cache-test", function () {
return date("H:i:s"); // return data to be cached
}, 10); // cache for 10 seconds
echo "Latest cache save: $data";See the documentation for full documentation.
| Back | FazBrowse Home | New Git URL |