

def get(self, key, timeout=None):
    'Given a key, returns an element from the redis table'
    key = (self.pre_identifier + key)
    unpickled_entry = self.client.get(key)
    if (not unpickled_entry):
        return None
    entry = pickle.loads(unpickled_entry)
    if (timeout is None):
        timeout = self.timeout
    if self._is_expired(entry, timeout):
        self.delete_entry(key)
        return None
    return entry[1]

dataset/ETHPy150Open tweepy/tweepy/tweepy/cache.py RedisCache.get/original