Umc Projects/MyRedis
[MyRedis] Redis 에서 데이터베이스 연결 지원
POWERUMC
2016. 4. 5. 14:52
[GitHub] https://github.com/powerumc/MyRedis
MyRedis 는 MySQL 연결을 지원하도록 2014년도에 개선 된 프로젝트이다.
RedisPlus 와 함께 곁들어 Redis와 DB 간에 동기화 할 때 사용할 때, 웹서버에서 처리해야 할 것들을 Redis 안에서 모두 해결하기 위함이다. 따라서 필요 이상의 라운드 트립 발생을 줄일 수 있다.
1. Setup Database
Setup Database
> SET db.host "localhost"
> SET db.user "root"
> SET db.passwd "!@#$%"
> SET db.db "powerumc"
2. Execute Query
Setup Query
> SET q1 "SELECT * FROM temp_table"
Execute Query
> MYSQLQ db q1
1) "1"
2) "Junil Um"
3) "25"
4) "2"
5) "땡초"
6) "3"
7) "3"
8) "POWERUMC"
9) "35"