/** * Retrieve multiple items from the cache by key. * Items not found in the cache will have a null value. * * @param array $keys * @return array|null */ protected function retrieveMany(array $keys) { $retrieved = []; $data = Cache::many($keys); foreach ($data as $item) { if ($item) { $retrieved[] = $item; } } if (count($retrieved)) { return $data; } }