None Adapter

This is a dummy adapter used to turn off caching without affecting your code. All you do is change the adapter you are using.

<?php
include 'vendor/autoload.php';

use \Vespula\Cache\Adapter\None as NoneCache;

$adapter = new NoneCache();

// always returns true
$adapter->set('cat', 'meow');

// will always return the specified default or null
$value = $adapter->get('cat', 'some default');

// Will always return false
$has = $adapter->has($key);

// Will always return true
$deleted = $adapter->delete($key);

// Will always return an array of defaults (or nulls)
$values = $adapter->getMultiple($keys, $default);