Example #1
0
 /**
  * Store an item in the cache.
  *
  * @param  mixed  $key
  * @param  mixed  $value
  * @param  \DateTime|int  $minutes
  * @return void
  */
 public function put($key, $value, $minutes)
 {
     if (is_array($key) && is_array($value)) {
         $this->putMany(array_combine($key, $value), $minutes);
     } else {
         parent::put($key, $value, $minutes);
     }
 }
 /**
  * Store an item in the cache.
  *
  * @param  string $key
  * @param  mixed $value
  * @param  \DateTime|int $minutes
  * @return void
  */
 public function put($key, $value, $minutes = null)
 {
     $this->sendTagsToStore();
     parent::put($key, $value, $minutes);
 }