ironicclient.common.filecache 模块

ironicclient.common.filecache.retrieve_data(host, port, expiry=None)[source]

检索为 ironic ‘host’ 存储的版本,如果它没有过期。

检查是否存在 host/port 组合的有效缓存数据,如果未过期则返回该数据。

参数 host: 我们需要检索数据的 host 参数 port: 我们需要检索数据的 host 上的端口 参数 expiry: 缓存数据被认为无效之前的秒数

ironicclient.common.filecache.save_data(host, port, data)[source]

将 ‘data’ 保存到适当的缓存目录中,用于特定的 ‘host’。

参数 host: 我们需要保存数据的 host 参数 port: 我们需要保存数据的 host 上的端口 参数 data: 我们想要保存的数据