|
Let us walk on the 3-isogeny graph
|


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[CacheEntry] | get_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 | |
Data Fields inherited from Cache | |
| cache_dir | |
Protected Member Functions inherited from Cache | |
| List[str] | _get_cache_path_parts (self, Link link) |
| List[Any] | _get_candidates (self, Link link, str canonical_package_name) |
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.
| None __init__ | ( | self, | |
| str | cache_dir | ||
| ) |
Reimplemented from Cache.
Definition at line 217 of file cache.py.
Referenced by Protocol.__init_subclass__().

Returns a link to a cached item if it exists, otherwise returns the passed link.
Reimplemented from Cache.
Definition at line 228 of file cache.py.
Referenced by LegacyMetadata.__getitem__(), Layout.__getitem__(), LegacyMetadata.check(), ThemeStack.push_theme(), and LegacyMetadata.write_file().

| Optional[CacheEntry] 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.
Definition at line 239 of file cache.py.
| str get_ephem_path_for_link | ( | self, | |
| Link | link | ||
| ) |
| str get_path_for_link | ( | self, | |
| Link | link | ||
| ) |
Definition at line 268 of file cache.py.
|
protected |
Definition at line 219 of file cache.py.
Referenced by Factory.get_wheel_cache_entry().