0.1.170
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,
) -> n: A string that represents the version of the function.
This method generates a version string for a function by hashing the function’s source code combined with a salt.
Parameter | Type |
---|---|
salt |
str |
params |
flytekit.core.cache.VersionParameters |