Download the PHP package christopher-paul-shaw/datacache without Composer
On this page you can find all versions of the php package christopher-paul-shaw/datacache. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package datacache
Summary
A PHP Class to cache frequently accessed Data to a file.
This is intended to be used to cache larger datasets such as database reports to prevent repetative and time / resource consuming data queries.
Usage
$file = "my-cache-file"; // File to Use for Cache
$time = "300"; // Seconds to Cache For
$cache = new DataCache($file, $time);
$data = $cache->read();
// Output Cached Version if present
if ($data) {
die($data);
}
// Write to Cache and Output of not present
$data = rand(1,15);
$cache->write($data);
die($data);
All versions of datacache with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.4 || ^7.0
The package christopher-paul-shaw/datacache contains the following files
Loading the files please wait ....