initialize_method_cache¶
- getmac.getmac.initialize_method_cache(method_type, network_request=True)[source]¶
Initialize the method cache for the given method type.
- Parameters:
- Return type:
- Returns:
If the cache was initialized successfully
- Raises:
RuntimeError – if no valid methods were found for the given method type and the system’s platform (or user-defined override platform), or if all matching methods failed to test.