private function createCache()
    {
        if ($this->valid && $this->contact->getId()) {
            $this->getCacheModel()->setContact($this->contact)
                ->setContactSource($this->contactSource)
                ->create($this->campaignId);
        }
    }
private function createCache()
    {
        if ($this->valid && $this->contact->getId()) {
            $this->getCacheModel()->setContact($this->contact)
                ->setContactSource($this->contactSource)
                ->create($this->campaignId);
        }
    }
private function createCache ( ) { if ( $ this -> valid && $ this -> contact -> getId ( ) ) { $ this -> getCacheModel ( ) -> setContact ( $ this -> contact ) -> setContactSource ( $ this -> contactSource ) -> create ( $ this -> campaignId ) ; } }
Create cache entry if a contact was created, used for duplicate checking and limits.

@throws \Exception
Create cache entry if a contact was created used for duplicate checking and limits .