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

Public Member Functions

None __init__ (self, str cache_dir)
 
str get_path_for_link (self, Link link)
 
str get_ephem_path_for_link (self, Link link)
 
Link get (self, Link link, Optional[str] package_name, List[Tag] supported_tags)
 
Optional[CacheEntryget_cache_entry (self, Link link, Optional[str] package_name, List[Tag] supported_tags)
 

Static Public Member Functions

None record_download_origin (str cache_dir, DirectUrl download_info)
 

Protected Attributes

 _wheel_cache
 
 _ephem_cache
 

Additional Inherited Members

- Public Attributes inherited from pip._internal.cache.Cache
 cache_dir
 
- Protected Member Functions inherited from pip._internal.cache.Cache
List[str] _get_cache_path_parts (self, Link link)
 
List[Any] _get_candidates (self, Link link, str canonical_package_name)
 

Detailed Description

Wraps EphemWheelCache and SimpleWheelCache into a single Cache

This Cache allows for gracefully degradation, using the ephem wheel cache
when a certain link is not found in the simple wheel cache first.

Constructor & Destructor Documentation

◆ __init__()

None pip._internal.cache.WheelCache.__init__ (   self,
str  cache_dir 
)

Reimplemented from pip._internal.cache.Cache.

Member Function Documentation

◆ get()

Link pip._internal.cache.WheelCache.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 from pip._internal.cache.Cache.

◆ get_cache_entry()

Optional[CacheEntry] pip._internal.cache.WheelCache.get_cache_entry (   self,
Link  link,
Optional[str]  package_name,
List[Tag supported_tags 
)
Returns a CacheEntry with a link to a cached item if it exists or
None. The cache entry indicates if the item was found in the persistent
or ephemeral cache.

◆ get_path_for_link()

str pip._internal.cache.WheelCache.get_path_for_link (   self,
Link  link 
)
Return a directory to store cached items in for link.

Reimplemented from pip._internal.cache.Cache.


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