def get(self, uid): """ Retrieves record `uid` from Redis """ item = redis.hgetall("marcel:%s:%s" % (self.type, uid)) item['type'] = self.type item['pubdate'] = dateutil.parser.parse(item['pubdate']) return item
def get(self): """ Retrieve a User from Redis """ return redis.hgetall(self.key)