src/Provider/AwsProvider.php
public function queueExists()
    {
        if (isset($this->queueUrl)) {
            return true;
        }

        $key = $this->getNameWithPrefix() . '_url';
        if ($this->cache->contains($key)) {
            $this->queueUrl = $this->cache->fetch($key);

            return true;
        }

        try {
            $result = $this->sqs->getQueueUrl([
                'QueueName' => $this->getNameWithPrefix()
            ]);

            $this->queueUrl = $result->get('QueueUrl');
            if ($this->queueUrl !== null) {
                $this->cache->save($key, $this->queueUrl);

                return true;
            }
        } catch (SqsException $e) {}

        return false;
    }
public function queueExists()
    {
        if (isset($this->queueUrl)) {
            return true;
        }

        $key = $this->getNameWithPrefix() . '_url';
        if ($this->cache->contains($key)) {
            $this->queueUrl = $this->cache->fetch($key);

            return true;
        }

        try {
            $result = $this->sqs->getQueueUrl([
                'QueueName' => $this->getNameWithPrefix()
            ]);

            $this->queueUrl = $result->get('QueueUrl');
            if ($this->queueUrl !== null) {
                $this->cache->save($key, $this->queueUrl);

                return true;
            }
        } catch (SqsException $e) {}

        return false;
    }
public function queueExists ( ) { if ( isset ( $ this -> queueUrl ) ) { return true ; } $ key = $ this -> getNameWithPrefix ( ) . '_url' ; if ( $ this -> cache -> contains ( $ key ) ) { $ this -> queueUrl = $ this -> cache -> fetch ( $ key ) ; return true ; } try { $ result = $ this -> sqs -> getQueueUrl ( [ 'QueueName' => $ this -> getNameWithPrefix ( ) ] ) ; $ this -> queueUrl = $ result -> get ( 'QueueUrl' ) ; if ( $ this -> queueUrl !== null ) { $ this -> cache -> save ( $ key , $ this -> queueUrl ) ; return true ; } } catch ( SqsException $ e ) { } return false ; }
Return the Queue Url

This method relies on in-memory cache and the Cache provider
to reduce the need to needlessly call the create method on an existing
Queue.

@return boolean
Return the Queue Url