Cache Utils¶
- class agilerl.utils.cache.Cache(cache_init: dict | None = None)¶
Bases:
object- dump(file_name: str) None¶
Dump the cache to a file.
- Parameters:
file_name (str) – Name of the file to dump the cache to.
- items() list[tuple[str, Any]]¶
Get the items of the cache.
- Returns:
Items of the cache.
- Return type:
- load(file_name: str) None¶
Load the cache from a file.
- Parameters:
file_name (str) – Name of the file to load the cache from.