diff --git a/metricflow-semantics/metricflow_semantics/model/semantics/metric_lookup.py b/metricflow-semantics/metricflow_semantics/model/semantics/metric_lookup.py index 213deaaad9..ca2b01eadb 100644 --- a/metricflow-semantics/metricflow_semantics/model/semantics/metric_lookup.py +++ b/metricflow-semantics/metricflow_semantics/model/semantics/metric_lookup.py @@ -45,7 +45,7 @@ def __init__(self, semantic_manifest: SemanticManifest, semantic_model_lookup: S max_entity_links=MAX_JOIN_HOPS, ) - @functools.cache + @functools.lru_cache def linkable_elements_for_measure( self, measure_reference: MeasureReference, @@ -68,7 +68,7 @@ def linkable_elements_for_measure( return linkable_element_set - @functools.cache + @functools.lru_cache def linkable_elements_for_no_metrics_query( self, with_any_of: Optional[FrozenSet[LinkableElementProperty]] = None, @@ -83,7 +83,7 @@ def linkable_elements_for_no_metrics_query( without_any_of=frozen_without_any_of, ) - @functools.cache + @functools.lru_cache def linkable_elements_for_metrics( self, metric_references: Sequence[MetricReference],