기본적으로 python에서 redis에서 정보를 get 해올 때, b''로 값이 출력된다.
이때 b의 의미와 이걸 제거하고 값만 출력하도록 옵션 설정을 한다.
def connect_redis():
redis_host = config['redis']['host']
redis_port = config['redis']['port']
redis_db = config['redis']['db']
rd = redis.Redis(host=redis_host, port=redis_port, db=redis_db, charset="utf-8", decode_responses=True)
return rd