def get_tweets(self, url, limit=None):
try:<EOL><INDENT>tweets = self.cache[url]["<STR_LIT>"]<EOL>self.mark_updated()<EOL>return sorted(tweets, reverse=True)[:limit]<EOL><DEDENT>except KeyError:<EOL><INDENT>return []<EOL><DEDENT>
Retrieves tweets from the cache.