add helper function for redis reply
use engine code as backend, no more mocking