All Questions
1 question
7
votes
1
answer
1k
views
Decorator to cache a function result for some time
I recently played around with a script that got some data from the Google API. As I didn't want to spam requests at the service (and potentially get blocked), I made this decorator, which caches the ...