def message_get(char_id): key = 'noti:{0}'.format(char_id) msgs = redis_client.lrange(key, 0, -1) redis_client.delete(key) return msgs
def get(cls): return redis_client.lrange(cls.REDIS_KEY, 0, -1)
def message_get(char_id): key = keygen(char_id) msgs = redis_client.lrange(key, 0, -1) redis_client.delete(key) return msgs