attogram/filesystem-cache

Filesystem-based cache system for PHP 7

dev-master 2020-02-15 19:09 UTC

This package is auto-updated.

Last update: 2024-11-16 07:17:15 UTC


README

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