attogram/filesystem-cache

Filesystem-based cache system for PHP 7

Installs: 0

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/attogram/filesystem-cache

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

This package is auto-updated.

Last update: 2025-09-16 09:06:56 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