src/mako/cache/stores/Store.php
public function getAndRemove(string $key)
	{
		$storedValue = $this->get($key);

		if($storedValue !== false)
		{
			$this->remove($key);
		}

		return $storedValue;
	}
public function getAndRemove(string $key)
	{
		$storedValue = $this->get($key);

		if($storedValue !== false)
		{
			$this->remove($key);
		}

		return $storedValue;
	}
public function getAndRemove ( string $ key ) { $ storedValue = $ this -> get ( $ key ) ; if ( $ storedValue !== false ) { $ this -> remove ( $ key ) ; } return $ storedValue ; }
Fetch data from the cache and remove it.

@param  string $key Cache key
@return mixed
Fetch data from the cache and remove it .