public function set($key, $value, $timeout = 0) {
        try {
            $result = ($timeout == 0)
                ? $this->getRedis()->set($key, $value)
                : $this->getRedis()->psetex($key, $timeout, $value);
            if ($result !== false) {
                return $result;
            }
            throw new ImpossibleValueException();
        } catch (RedisException $ex) {
            throw new ConnectException();
        }
    }