ironicclient.common.filecache module¶
- ironicclient.common.filecache.retrieve_data(host: str, port: str | int, expiry: int | None = None) str | None[source]¶
Retrieve the version stored for an ironic ‘host’, if it’s not stale.
Check to see if there is valid cached data for the host/port combination and return that if it isn’t stale.
param host: The host that we need to retrieve data for param port: The port on the host that we need to retrieve data for param expiry: The age in seconds before cached data is deemed invalid
- ironicclient.common.filecache.save_data(host: str, port: str | int, data: str) None[source]¶
Save ‘data’ for a particular ‘host’ in the appropriate cache dir.
param host: The host that we need to save data for param port: The port on the host that we need to save data for param data: The data we want saved