public function rememberMany(array $keys, $minutes, Closure $callback)
    {
        $values = $this->getMany($keys);

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

        if (! empty($items)) {
            $items = array_combine(array_keys($items), $callback(array_keys($items)));

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

            $values = array_replace($values, $items);
        }

        return $values;
    }
public function rememberMany(array $keys, $minutes, Closure $callback)
    {
        $values = $this->getMany($keys);

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

        if (! empty($items)) {
            $items = array_combine(array_keys($items), $callback(array_keys($items)));

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

            $values = array_replace($values, $items);
        }

        return $values;
    }
public function rememberMany ( array $ keys , $ minutes , Closure $ callback ) { $ values = $ this -> getMany ( $ keys ) ; $ items = Arr :: where ( $ values , function ( $ key , $ value ) { return is_null ( $ value ) ; } ) ; if ( ! empty ( $ items ) ) { $ items = array_combine ( array_keys ( $ items ) , $ callback ( array_keys ( $ items ) ) ) ; $ this -> putMany ( $ items , $ minutes ) ; $ values = array_replace ( $ values , $ items ) ; } return $ values ; }
Get an array of items from the cache, or store the default value.

@param  array  $keys
@param  \DateTime|int  $minutes
@param  \Closure  $callback
@return mixed
Get an array of items from the cache or store the default value .