muh6mm3d / pylast

Automatically exported from code.google.com/p/pylast
Apache License 2.0
0 stars 0 forks source link

[Enhancement] More flexible caching #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Pylast 0.5

I wish there was a chance to decide whether to use caching or not with more 
flexibility. I might have caching enabled but still don't want to use it for a 
specific request.
This is a simple and easy feature.

For example the method User.get_recent_tracks(self, limit = 10) will become:

get_recent_tracks(self, limit = 10, cacheable = True)

and a few lines below: for track in _collect_nodes(limit, self, 
"user.getRecentTracks", True, params) ->

for track in _collect_nodes(limit, self, "user.getRecentTracks", cacheable, 
params):

And so on..
Cheers

Original issue reported on code.google.com by ralibert...@gmail.com on 24 Dec 2013 at 10:58

GoogleCodeExporter commented 9 years ago
Fixed in my fork: https://github.com/hugovk/pylast/issues/88

Original comment by hugovk@gmail.com on 4 Mar 2014 at 11:50