CachedValueMetadata 类

继承
builtins.object
CachedValueMetadata

构造函数

CachedValueMetadata(local_path: str, remote_path: str, cv_type: str)

参数

local_path
remote_path
cv_type

方法

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
必需

父目录的远程路径。

属性

SUPPORTED_TYPES

SUPPORTED_TYPES = ('file', 'dir')

TYPE_DIR

TYPE_DIR = 'dir'

TYPE_FILE

TYPE_FILE = 'file'