![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|

Public Member Functions | |
| None | __init__ (self, str cache_dir) |
| str | get_path_for_link (self, Link link) |
| Link | get (self, Link link, Optional[str] package_name, List[Tag] supported_tags) |
Public Attributes | |
| cache_dir | |
Protected Member Functions | |
| List[str] | _get_cache_path_parts (self, Link link) |
| List[Any] | _get_candidates (self, Link link, str canonical_package_name) |
An abstract class - provides cache directories for data from links :param cache_dir: The root of the cache.
|
protected |
Get parts of part that must be os.path.joined with cache_dir
| Link pip._internal.cache.Cache.get | ( | self, | |
| Link | link, | ||
| Optional[str] | package_name, | ||
| List[Tag] | supported_tags | ||
| ) |
Returns a link to a cached item if it exists, otherwise returns the passed link.
Reimplemented in pip._internal.cache.SimpleWheelCache, and pip._internal.cache.WheelCache.
| str pip._internal.cache.Cache.get_path_for_link | ( | self, | |
| Link | link | ||
| ) |
Return a directory to store cached items in for link.
Reimplemented in pip._internal.cache.SimpleWheelCache, and pip._internal.cache.WheelCache.