Rewrite abstraction between redis and server.