php-extended/php-simple-cache-noop

A psr-16 compliant cache that caches nothing, for mocking purposes.

4.0.0 2022-05-31 07:02 UTC

README

A psr-16 compliant cache that caches nothing, for mocking purposes.

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

	"require": {
		...
		"php-extended/php-simple-cache-noop": "^3",
		...
	}

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

This library is to make a man in the middle for http requests and responses and logs the events when requests passes. It may be used the following way :


use PhpExtended\SimpleCache\SimpleCacheNoop;

$cache = new SimpleCacheNoop();

$itemToStore = '<data>';

$cache->set($key, $itemToStore);

$data = $cache->get($key);	// retrieves nothing

License

MIT (See license file).