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
Switch redis cache and brainzutils.cache (GCI17) #335
Conversation
redis.Redis.setex() changed to brainzutils.cache.set()
Get user count using brainzutils.cache instead of redis cache
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.
It would be useful to squash these commits into one commit, or into meaningful chunks as needed. To do this, run an interactive rebase from the head of metabrainz/master
- git rebase -i 3272540
and see the help text that shows up. You'll have to git force --push
to this branch after that for this to work.
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.
The build seems to be failing due to a syntax error, please take a look and fix until tests pass. Thanks!
listenbrainz/webserver/__init__.py
Outdated
# Cache | ||
if 'REDIS_HOST' in app.config and\ | ||
'REDIS_PORT' in app.config and\ | ||
'REDIS_NAMESPACE' in app.config and: |
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.
Problem seems to be the extra and here
Do keep in mind git commit message guidelines as well. 0581441's commit message would be better stated as |
Okay, I will keep it in mind, thank you |
Add key "REDIS_NAMESPACE" with value "LB", LB = ListenBrainz
Change test by setting data into brainzutils.cache instead of redis to test redis_listenstore's function get_playing_now() where used brainzutils.cache.get() instead of self.redis.get()
Closing this in favor of #333 for now. |
Summary
Problem
Solution
Action