{"action":"created","issue":{"url":"https://api.github.com/repos/AppCreativity/Kliva/issues/31","repository_url":"https://api.github.com/repos/AppCreativity/Kliva","labels_url":"https://api.github.com/repos/AppCreativity/Kliva/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/AppCreativity/Kliva/issues/31/comments","events_url":"https://api.github.com/repos/AppCreativity/Kliva/issues/31/events","html_url":"https://github.com/AppCreativity/Kliva/issues/31","id":136955757,"number":31,"title":"Add caching to API calls","user":{"login":"bartlannoeye","id":5115577,"avatar_url":"https://avatars.githubusercontent.com/u/5115577?v=3","gravatar_id":"","url":"https://api.github.com/users/bartlannoeye","html_url":"https://github.com/bartlannoeye","followers_url":"https://api.github.com/users/bartlannoeye/followers","following_url":"https://api.github.com/users/bartlannoeye/following{/other_user}","gists_url":"https://api.github.com/users/bartlannoeye/gists{/gist_id}","starred_url":"https://api.github.com/users/bartlannoeye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartlannoeye/subscriptions","organizations_url":"https://api.github.com/users/bartlannoeye/orgs","repos_url":"https://api.github.com/users/bartlannoeye/repos","events_url":"https://api.github.com/users/bartlannoeye/events{/privacy}","received_events_url":"https://api.github.com/users/bartlannoeye/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AppCreativity/Kliva/labels/feature","name":"feature","color":"bfe5bf"},{"url":"https://api.github.com/repos/AppCreativity/Kliva/labels/Win10%20UWP","name":"Win10 UWP","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-27T19:12:52Z","updated_at":"2016-03-02T07:51:24Z","closed_at":null,"body":"Strava api calls are limited in time\r\n- In memory vs on disk (eg Akavache)\r\n- Different timespans as some endpoints expire faster (eg kudos/comments)"},"comment":{"url":"https://api.github.com/repos/AppCreativity/Kliva/issues/comments/191116385","html_url":"https://github.com/AppCreativity/Kliva/issues/31#issuecomment-191116385","issue_url":"https://api.github.com/repos/AppCreativity/Kliva/issues/31","id":191116385,"user":{"login":"Depechie","id":351693,"avatar_url":"https://avatars.githubusercontent.com/u/351693?v=3","gravatar_id":"","url":"https://api.github.com/users/Depechie","html_url":"https://github.com/Depechie","followers_url":"https://api.github.com/users/Depechie/followers","following_url":"https://api.github.com/users/Depechie/following{/other_user}","gists_url":"https://api.github.com/users/Depechie/gists{/gist_id}","starred_url":"https://api.github.com/users/Depechie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Depechie/subscriptions","organizations_url":"https://api.github.com/users/Depechie/orgs","repos_url":"https://api.github.com/users/Depechie/repos","events_url":"https://api.github.com/users/Depechie/events{/privacy}","received_events_url":"https://api.github.com/users/Depechie/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T07:51:24Z","updated_at":"2016-03-02T07:51:24Z","body":"I've already added some in memory caches through use of a ConcurrentDictionary<key, T> where T is a Task<T>. That way when multiple requests are made of the same data, it will only go 'online' once for  the first request.\r\nThese caches are not yet time based, so not invalidated during the use of the app. But for the information we are using this, it's not yet that critical ( Photo and Athlete ).\r\n\r\nWe still need to see how we also cache results on disk and add timestamps."}}