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

https://github.com/thecodingmachine/utils.cache.file-cache

This package contains a cache mechanism that relies on temporary files.
https://github.com/thecodingmachine/utils.cache.file-cache

Last synced: about 1 year ago
JSON representation

This package contains a cache mechanism that relies on temporary files.

Awesome Lists containing this project

README

          

[![Latest Stable Version](https://poser.pugx.org/mouf/utils.cache.file-cache/v/stable.svg)](https://packagist.org/packages/mouf/utils.cache.file-cache)
[![Total Downloads](https://poser.pugx.org/mouf/utils.cache.file-cache/downloads.svg)](https://packagist.org/packages/mouf/utils.cache.file-cache)
[![Latest Unstable Version](https://poser.pugx.org/mouf/utils.cache.file-cache/v/unstable.svg)](https://packagist.org/packages/mouf/utils.cache.file-cache)
[![License](https://poser.pugx.org/mouf/utils.cache.file-cache/license.svg)](https://packagist.org/packages/mouf/utils.cache.file-cache)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/thecodingmachine/utils.cache.file-cache/badges/quality-score.png?b=2.2)](https://scrutinizer-ci.com/g/thecodingmachine/utils.cache.file-cache/?branch=2.2)
[![Build Status](https://travis-ci.org/thecodingmachine/utils.cache.file-cache.svg)](https://travis-ci.org/thecodingmachine/utils.cache.file-cache)
[![Coverage Status](https://coveralls.io/repos/thecodingmachine/utils.cache.file-cache/badge.svg)](https://coveralls.io/r/thecodingmachine/utils.cache.file-cache)

Mouf's file cache service
=========================

This package contains 2 implementations of Mouf's CacheInterface that stores the cache in files on the server's hard drive.

- `FileCache` is a service that stores cache keys in files. The value is *serialized*.
- `PhpFileCache` is a **more efficient** service that stores cache keys in executable PHP files. You should prefer
this implementation unless you have security concerns about `var_export`ing your cache keys.

To learn more about the cache interface, please see the [cache system documentation](http://mouf-php.com/packages/mouf/utils.cache.cache-interface).