Keep count of active searches. Active means: not completed and actively getting results and parsing them.
This might help when implementing cached responses, since the number of active searches will be equal to the TTL (in secs, for a 60/second Discogs API limit) of the response.
The approach could be keeping the operations list for every search in state and make the search function modify and iterate over this list.
Keep count of active searches. Active means: not completed and actively getting results and parsing them.
This might help when implementing cached responses, since the number of active searches will be equal to the TTL (in secs, for a 60/second Discogs API limit) of the response.
The approach could be keeping the operations list for every search in state and make the search function modify and iterate over this list.