Skip to content

attogram/filesystem-cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages