Tree based model in REDIS