Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/attogram/filesystem-cache

Filesystem-based cache system for PHP 7.
https://github.com/attogram/filesystem-cache

cache caching-library filesystem-cache php7

Last synced: 10 days ago
JSON representation

Filesystem-based cache system for PHP 7.

Awesome Lists containing this project

README

        

# filesystem-cache

Filesystem-based cache system for PHP 7.

* Repository:
* Packagist:
* CodeClimate: [![Maintainability](https://api.codeclimate.com/v1/badges/74acc2c81db24cc8fb75/maintainability)](https://codeclimate.com/github/attogram/filesystem-cache/maintainability)
* Travis-CI: [![Build Status](https://travis-ci.org/attogram/filesystem-cache.svg?branch=master)](https://travis-ci.org/attogram/filesystem-cache)

## Usage

```php
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

*
*
*
*
*
*
*
*
*
* ...