Simple Cache
por star
Paquete PHP
Common interfaces for simple caching
Light, simple and standalone PHP in-file caching class
Light, simple and standalone PHP in-file caching class
die, making direct access impossible even if someone knows the path and your server is not configured properlyYou 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.
Common interfaces for simple caching
Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.
Guzzle is a PHP HTTP client library
PHPMailer is a full-featured email creation and transfer class for PHP
Nueva versión disponible.