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) |
Link | get (self, Link link, Optional[str] package_name, List[Tag] supported_tags) |
Data Fields | |
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.
None __init__ | ( | self, | |
str | cache_dir | ||
) |
Reimplemented in EphemWheelCache, SimpleWheelCache, and WheelCache.
Definition at line 38 of file cache.py.
References Cache.__init__(), and i.
Referenced by Cache.__init__(), and Protocol.__init_subclass__().
|
protected |
Get parts of part that must be os.path.joined with cache_dir
Definition at line 43 of file cache.py.
|
protected |
Definition at line 76 of file cache.py.
Returns a link to a cached item if it exists, otherwise returns the passed link.
Reimplemented in SimpleWheelCache, and WheelCache.
Definition at line 92 of file cache.py.
Referenced by LegacyMetadata.__getitem__(), Layout.__getitem__(), LegacyMetadata.check(), ThemeStack.push_theme(), and LegacyMetadata.write_file().
str get_path_for_link | ( | self, | |
Link | link | ||
) |
Return a directory to store cached items in for link.
Reimplemented in SimpleWheelCache, and WheelCache.
Definition at line 88 of file cache.py.