public function addMany(array $items, $minutes)
    {
        $values = $this->getMany(array_keys($items));

        $fill = Arr::where($values, function ($key, $value) {
            return is_null($value);
        });

        $items = array_intersect_key($items, $fill);

        $this->putMany($items, $minutes);

        return array_map(function ($value) {
            return is_null($value);
        }, $values);
    }
public function addMany(array $items, $minutes)
    {
        $values = $this->getMany(array_keys($items));

        $fill = Arr::where($values, function ($key, $value) {
            return is_null($value);
        });

        $items = array_intersect_key($items, $fill);

        $this->putMany($items, $minutes);

        return array_map(function ($value) {
            return is_null($value);
        }, $values);
    }
public function addMany ( array $ items , $ minutes ) { $ values = $ this -> getMany ( array_keys ( $ items ) ) ; $ fill = Arr :: where ( $ values , function ( $ key , $ value ) { return is_null ( $ value ) ; } ) ; $ items = array_intersect_key ( $ items , $ fill ) ; $ this -> putMany ( $ items , $ minutes ) ; return array_map ( function ( $ value ) { return is_null ( $ value ) ; } , $ values ) ; }
Store an array of items in the cache if the key does not exist.

@param  array  $items
@param  \DateTime|int  $minutes
@return array
Store an array of items in the cache if the key does not exist .