php-extended/php-simple-cache-noop

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

7.0.2 2024-04-08 18:43 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 and the autoloading of all classes of this library is made through their autoloader.

  • Download composer.phar from their website.
  • Then run the following command to install this library as dependency :
  • php composer.phar php-extended/php-simple-cache-noop ^7

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).