{"action":"closed","issue":{"url":"https://api.github.com/repos/airbnb/caravel/issues/179","repository_url":"https://api.github.com/repos/airbnb/caravel","labels_url":"https://api.github.com/repos/airbnb/caravel/issues/179/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/caravel/issues/179/comments","events_url":"https://api.github.com/repos/airbnb/caravel/issues/179/events","html_url":"https://github.com/airbnb/caravel/issues/179","id":140582014,"number":179,"title":"Data cache","user":{"login":"gbrian","id":767180,"avatar_url":"https://avatars.githubusercontent.com/u/767180?v=3","gravatar_id":"","url":"https://api.github.com/users/gbrian","html_url":"https://github.com/gbrian","followers_url":"https://api.github.com/users/gbrian/followers","following_url":"https://api.github.com/users/gbrian/following{/other_user}","gists_url":"https://api.github.com/users/gbrian/gists{/gist_id}","starred_url":"https://api.github.com/users/gbrian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbrian/subscriptions","organizations_url":"https://api.github.com/users/gbrian/orgs","repos_url":"https://api.github.com/users/gbrian/repos","events_url":"https://api.github.com/users/gbrian/events{/privacy}","received_events_url":"https://api.github.com/users/gbrian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-14T05:47:56Z","updated_at":"2016-03-30T05:58:05Z","closed_at":"2016-03-30T05:58:05Z","body":"Hi,\r\n\r\nI'll need to cache some data to avoid querying DB continuously. Any preferred approach ?\r\nCurrently I'm thinking on adding basic caching. It will include an new attribute for the slice- \"Time to live\", \"Cache time\" or similar with 0 meaning no cache-. We'll need a way to invalidate cache as well ;)\r\n\r\nWhat about something quite basic using https://pypi.python.org/pypi/pyfscache/ ?\r\nWe can use it at class method **BaseViz::get_df** level, don't you?\r\n\r\nThanks"}}