def cached_read(self, kind):
if not kind in self.cache:<EOL><INDENT>self.pull_stats(kind)<EOL><DEDENT>if self.epochnow() - self.cache[kind]['<STR_LIT>'] > self.cache_timeout:<EOL><INDENT>self.pull_stats(kind)<EOL><DEDENT>return self.cache[kind]['<STR_LIT>']<EOL>
Cache stats calls to prevent hammering the API