def get(key): value = redis_client.get(key) if value: return cPickle.loads(value) return None
def get_login_id(self): return redis_client.get(self.key)