Added changes to support openredis.