The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
0.1.202
union.cache
Directory
Classes
| Class | Description |
|---|---|
CacheFunctionBody |
A class that implements a versioning mechanism for functions by generating. |
union.cache.CacheFunctionBody
A class that implements a versioning mechanism for functions by generating a SHA-256 hash of the function’s source code combined with a salt.
Methods
| Method | Description |
|---|---|
get_version() |
This method generates a version string for a function by hashing the function’s source code. |
get_version()
def get_version(
salt: str,
params: flytekit.core.cache.VersionParameters,
) -> strThis method generates a version string for a function by hashing the function’s source code combined with a salt.
| Parameter | Type | Description |
|---|---|---|
salt |
str |
A string that is used to salt the hash. |
params |
flytekit.core.cache.VersionParameters |
VersionParameters object that contains the parameters (e.g. function, ImageSpec, etc.) that are used to generate the version. |
Returns: A string that represents the version of the function.