FileCachedValueMetadata 类

用于保存缓存存储中存储的文件的元数据的类。

继承
FileCachedValueMetadata

构造函数

FileCachedValueMetadata(local_path: str, remote_path: str = '', **kwargs: Any)

参数

local_path
remote_path

方法

update_local_path

在 load() 后更新文件项的本地路径。

update_remote_path

根据提供的参数设置上传路径。

update_local_path

在 load() 后更新文件项的本地路径。

update_local_path(key: str, parent_local_path: str) -> None

参数

key
必需

cached_items 中项的键

parent_local_path
必需

父项的本地路径。

update_remote_path

根据提供的参数设置上传路径。

update_remote_path(key: str, parent_remote_path: str) -> None

参数

key
必需

缓存存储中项的键。

parent_remote_path
必需

父目录的远程路径。