public function get($key, $type)
	{
		if(is_array($key))
		{
			return $this->getItem($this->storageKey($key), $type);
		}

		if(is_string($key))
		{
			return $this->getItem($key, $type);
		}

		if(is_int($key))
		{
			return $this->getItem($this->storageKey([$key]), $type);
		}

		return null;
	}
public function get($key, $type)
	{
		if(is_array($key))
		{
			return $this->getItem($this->storageKey($key), $type);
		}

		if(is_string($key))
		{
			return $this->getItem($key, $type);
		}

		if(is_int($key))
		{
			return $this->getItem($this->storageKey([$key]), $type);
		}

		return null;
	}
public function get ( $ key , $ type ) { if ( is_array ( $ key ) ) { return $ this -> getItem ( $ this -> storageKey ( $ key ) , $ type ) ; } if ( is_string ( $ key ) ) { return $ this -> getItem ( $ key , $ type ) ; } if ( is_int ( $ key ) ) { return $ this -> getItem ( $ this -> storageKey ( [ $ key ] ) , $ type ) ; } return null ; }
Get item or collection from cache

@param  mixed $key
@param  string $type

@return DataTransferObject | null
Get item or collection from cache