Skip to content

Commit 1729be4

Browse files
authored
chore(flags): expose flag_definition_cache_provider (#462)
* add flag def cache provider
1 parent 63d4644 commit 1729be4

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
pypi/posthog: patch
3+
---
4+
5+
chore(flags): expose flag_definition_cache_provider

posthog/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ def get_tags() -> Dict[str, Any]:
253253
# Whether to enable feature flag polling for local evaluation by default. Defaults to True.
254254
# We recommend setting this to False if you are only using the personalApiKey for evaluating remote config payloads via `get_remote_config_payload` and not using local evaluation.
255255
enable_local_evaluation = True # type: bool
256+
flag_definition_cache_provider = None # type: Optional[FlagDefinitionCacheProvider]
256257

257258
default_client = None # type: Optional[Client]
258259

@@ -867,6 +868,7 @@ def setup() -> Client:
867868
enable_exception_autocapture=enable_exception_autocapture,
868869
log_captured_exceptions=log_captured_exceptions,
869870
enable_local_evaluation=enable_local_evaluation,
871+
flag_definition_cache_provider=flag_definition_cache_provider,
870872
capture_exception_code_variables=capture_exception_code_variables,
871873
code_variables_mask_patterns=code_variables_mask_patterns,
872874
code_variables_ignore_patterns=code_variables_ignore_patterns,

0 commit comments

Comments
 (0)