refactor client API
refactor to use redis hashes and list only for indexes