prefect.cache_policies
CachePolicy
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn
CacheKeyFnPolicy
compute_key
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn
CompoundCachePolicy
None
will be ignored.
Methods:
compute_key
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn
TaskSource
compute_key
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn
FlowParameters
compute_key
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn
RunId
compute_key
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn
Inputs
compute_key
compute_key
configure
key_storage
: The storage to use for cache keys. If not provided,
the current key storage will be used.lock_manager
: The lock manager to use for the cache policy. If not provided,
the current lock manager will be used.isolation_level
: The isolation level to use for the cache policy. If not provided,
the current isolation level will be used.from_cache_key_fn