Skip to content

Conversation

@vazarkevych
Copy link
Collaborator

@vazarkevych vazarkevych commented Dec 2, 2025

This PR introduces asynchronous feature caching support, which is critical for the asynchronous operation mode of the SDK (GrowthBookClient). Utilizing an async cache (e.g., Redis) significantly reduces latency and API load by eliminating the need for HTTP requests during a Cache HIT.

Changes

  • Added AbstractAsyncFeatureCache: Defined the interface for asynchronous caching, including methods like get(key), set(key, value, ttl).
  • Updated FeatureRepository: The load_features_async method now utilizes self.async_cache (if provided in Options) to check and store features in the cache.

# Conflicts:
#	growthbook/growthbook.py
# Conflicts:
#	growthbook/growthbook.py
# Conflicts:
#	growthbook/growthbook.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants