Classes
CacheVersion
5
▼
Parsed cache version info.
CacheVersion
5
▼
Parsed cache version info.
Attributes
| Name | Type | Description |
|---|---|---|
format_version |
int
|
— |
python_major |
int
|
— |
python_minor |
int
|
— |
Methods
current
0
CacheVersion
▼
Get the current environment's cache version info.
classmethod
current
0
CacheVersion
▼
def current(cls) -> CacheVersion
Returns
CacheVersion
is_compatible
0
bool
▼
Check if this version is compatible with current runtime.
is_compatible
0
bool
▼
def is_compatible(self) -> bool
Returns
bool
Functions
validate_cache_header
1
tuple[bool, bytes]
▼
Validate cache magic header and return remaining data.
validate_cache_header
1
tuple[bool, bytes]
▼
def validate_cache_header(data: bytes) -> tuple[bool, bytes]
Parameters
| Name | Type | Description |
|---|---|---|
data |
bytes |
Returns
tuple[bool, bytes]
prepend_cache_header
1
bytes
▼
Prepend magic header to cache data.
prepend_cache_header
1
bytes
▼
def prepend_cache_header(data: bytes) -> bytes
Parameters
| Name | Type | Description |
|---|---|---|
data |
bytes |
Returns
bytes