Beispiel #1
0
 /**
  * Устанавливает кеш кампании
  *
  * @param Campaigns $campaign
  * @return bool
  */
 public function setCampaignCache(Campaigns $campaign)
 {
     return $this->redis()->hMset($this->getCampaignCacheKey($campaign->id), array_merge(array_diff_key($campaign->getAttributes(), array('track_js' => null)), array('date_end' => strtotime($campaign->date_end . '23:59:59'))));
 }