public function setnx($key, $value) {
        try {
            return $this->getRedis()->setnx($key, $value);
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }