MetaBrainz Foundation
Use brainzutils.cache for caching in ListenBrainz
ListenBrainz currently directly uses its redis connection for caching data that we don't want to calculate very frequently. However, this causes a few problems such as having no namespacing. MetaBrainz has another project called brainzutils which other projects like CritiqueBrainz and AcousticBrainz use for caching purposes.
In order to maintain consistency, ListenBrainz should also use brainzutils for caching purposes. This task involves finding all places in the code where we use redis as a cache
directly and then using brainzutils.cache
there instead.
To perform this task,
- Add brainzutils to the requirements.txt file of ListenBrainz
- Initialize the cache like it is done in other MetaBrainz projects
- Find all places in the code where we use redis as a cache
- Replace the use of redis there with brainzutils.cache
Task tags
Students who completed this task
citsampla