Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
pip._internal.cache.Cache Class Reference
Inheritance diagram for pip._internal.cache.Cache:
Inheritance graph
[legend]

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)
 

Detailed Description

An abstract class - provides cache directories for data from links

:param cache_dir: The root of the cache.

Member Function Documentation

◆ _get_cache_path_parts()

List[str] pip._internal.cache.Cache._get_cache_path_parts (   self,
Link  link 
)
protected
Get parts of part that must be os.path.joined with cache_dir

◆ get()

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.

◆ get_path_for_link()

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.


The documentation for this class was generated from the following file: