done with class on mongo/redis