# ironicclient.common.filecache module

ironicclient.common.filecache.retrieve_data(host: str, port: str | int, expiry: int | None = None) → str | None

  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

  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

this page last updated: 2026-07-16 03:09:15

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.

found an error? report a bug