works with REDIS and Mongo