Perform garbage collection on specified cache configuration. All invalidated cache
keys - *without* honoring a configured scope - from the specified configuration are
removed.
public function testClean() { $config = array('default' => array('adapter' => 'Memory', 'filters' => array())); Cache::config($config); $result = Cache::config(); $expected = $config; $this->assertEqual($expected, $result); $result = Cache::clean('non_existing'); $this->assertFalse($result); $result = Cache::clean('default'); $this->assertFalse($result); }