snowmobile.core.cache
¶
Simple caching implementation for snowmobile.toml location.
Module Contents¶
Classes¶
Bare bones caching implementation for configuration file locations. |
- class
snowmobile.core.cache.
Cache
¶ Bases:
snowmobile.core.Generic
Bare bones caching implementation for configuration file locations.
-
cache_dir
¶ Path to cache directory within AppData.
- Type
Path
-
location
¶ Full path to snowmobile_cache.json.
- Type
Path
-
contents
¶ Cache contents (file path by file name).
- Type
Dict
-
cache_dir
¶ Cache directory.
- Type
-
location
¶ Full path to snowmobile_cache.json.
- Type
-
contents
:Dict¶ Cached contents.
- Type
Dict
-
save_all
(self, items: Dict)¶ Caches a dictionary of items
-
as_path
(self, item_name: str) → pathlib.Path¶ Utility to return item_name as a
Path
object.
-