Caching of last.fm data

 
    • ftparea sa...
    • Användare
    • 5 maj 2012, 17:04

    Caching of last.fm data

    Hi!

    The API Terms of Service states:
    "You agree to cache similar artist and any chart data (top tracks, top artists, top albums) for a minimum of one week."

    Does this mean that I'm allowed to fetch other statistics, specifically library.getTracks, more often? I'd like to fetch it once per day to keep my listening stats updated.

    • soadize sa...
    • Användare
    • 5 maj 2012, 20:25
    I think you could fetch any non-static data up to 5 requests per seconds, if that would be really usefull for your application.

    • tburny sa...
    • Forum Moderator
    • 6 maj 2012, 18:54
    You should cache data like from artist.getInfo for 1-2 weeks.
    I personally would agree on caching library.getTracks for one day, seems sensible to me. Sorry I cannot give any official reply, because I'm not a staff member :)

    My best guess is "Cache it for a period of time that is sensible in common sense" :)

    Combo.fm: Combine your favourite radio stations! | My Blog | scala-lastfmapi | Cache2k - A high performance Java in-memory cache
    P.S.: Do not click here
    throw new PokemonException(); //Gotta catch 'em all
    My forum post reflects my personal opinion :)
Anonyma användare kan inte skriva inlägg. Vänligen logga in eller skapa ett konto för att göra inlägg i forumen.