2017 © Pedro Peláez
 

library basic-cache

Simple and fast caching class that uses the file system for caching

image

ardagedik/basic-cache

Simple and fast caching class that uses the file system for caching

  • Tuesday, February 20, 2018
  • by ardagedikk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Basic Cache

Simple and fast caching class that uses the file system for caching, (*1)

Build Status Total Downloads Latest Stable Version License , (*2)

Features

  • Minifying the source code of the cache file
  • Determining the extension of the cache file
  • Encrypts file names with MD5

Install

composer require ardagedik/basic-cache

Usage

<?php
    require_once('vendor/autoload.php');
    use ArdaGedik\BasicCache;

    $cache = new BasicCache();
?>
start(); 
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Basic Cache Example</title>
  </head>
  <body>
    <h1>Hello World</h1>
  </body>
</html>

end();
?>



## Options ```php // These options are assigned by default $cache = new BasicCache([ "path" => "cache/", "expire" => 60, "extension" => ".html" ]);
```php // Clear all cache files $cache->clear();

License

MIT, (*3)

The Versions

20/02 2018

dev-master

9999999-dev

Simple and fast caching class that uses the file system for caching

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Avatar Arda Gedik

08/12 2017

v1.0.0

1.0.0.0

Simple and fast caching class that uses the file system for caching

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

by Avatar Arda Gedik