Skip to main content
Version: Beta 🚧

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__(...)​

Method generated by attrs for class CacheConfig.

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.

Was this page helpful?

🧠 Hi! Ask me anything about Tecton!

Floating button icon