tecton.CacheConfig
Summary​
Configuration used to describe cache configuration for a Feature View.
Example​
An example of CacheConfig declaration as part of FeatureView:
# CacheConfig is normally used as a named argument parameter to a Feature View instance definition.
from tecton import CacheConfig, batch_feature_view, FeatureService
cache_config = CacheConfig(max_age_seconds=3600)
@batch_feature_view(cache_config=cache_config)
def my_cached_feature_view():
return
Attributes​
The attributes are the same as the __init__
method parameters. See below.
Methods​
__init__(...)​
Parameters​
max_age_seconds
(int
) – The ttl in seconds for a cached feature value, after which the cached value will become stale and will no longer be retrieved by the feature server.