using mysql and redis with the framework