From d19f4fa75bdde2bae2f2586354ef66a854bba180 Mon Sep 17 00:00:00 2001 From: ekneg54 Date: Sat, 7 Oct 2023 11:41:00 +0000 Subject: [PATCH] add max to lru_cache --- logprep/util/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logprep/util/helper.py b/logprep/util/helper.py index 334dc8e79..d38445f0f 100644 --- a/logprep/util/helper.py +++ b/logprep/util/helper.py @@ -145,7 +145,7 @@ def get_dotted_field_value(event: dict, dotted_field: str) -> Optional[Union[dic return None -@lru_cache(maxsize=None) +@lru_cache(maxsize=100000) def get_dotted_field_list(dotted_field: str) -> list[str]: """make lookup of dotted field in the dotted_field_lookup_table and ensures it is added if not found. Additionally the string will be interned for faster