/** * Добавляет цель * * @param CampaignsActions $action * * @return bool */ public function addAction(CampaignsActions $action) { $encryptedId = $action->getEncryptedId(); $key = $this->getCampaignActionsKey($action->campaign_id); $this->redis()->sAdd($key, $encryptedId); $key = $this->getActionKey($encryptedId); $this->redis()->hMset($key, $action->getAttributes(array('id', 'target_type', 'target_match_type', 'target', 'campaign_id'))); }