-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init version #3
init version #3
Conversation
field $client_key :param; | ||
field $features :param //= {}; | ||
field $cache_ttl :param //= 60; | ||
field $cache //= WebService::GrowthBook::InMemoryFeatureCache->singleton; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need this cache object here ? From my understanding The FeatureRepository seems to be abstracting the cache from the the Growthbook class Object ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This parameter is used to set cache module in FeatureRepository. Without this one we cannot custom cache object in FeatureRepository.
- Initial release - load features - get feature value - is_on - is_off
We are looking at creating simple SDK for Growthbook (Feature Flags). We have written simple code to access flags but it will be great to get separate modules which can be used by multiple teams. here is the code we have