/filesystem-cache

Filesystem-based cache system for PHP 7.

Primary LanguagePHPMIT LicenseMIT

filesystem-cache

Filesystem-based cache system for PHP 7.

Usage

use Attogram\Filesystem\Cache;

$cacheDirectory = '../cache/'; // must include trailing slash

$cache = new Cache($cacheDirectory);

Functions

  • public function exists(string $key): bool
  • public function get(string $key)
  • public function set(string $key, string $value): bool
  • public function delete(string $key): bool
  • public function age(string $key): int

Similar projects