ScriptFUSION\Porter\Cache\MemoryCache::clear PHP Method

clear() public method

public clear ( )
    public function clear()
    {
        $this->exchangeArray([]);
    }

Usage Example

Example #1
0
 public function testClear()
 {
     $this->cache->clear();
     self::assertEmpty($this->cache->getArrayCopy());
 }