/** * Return a collection of elements who's ids match * @param array $ids * @return mixed */ public function findByMany(array $ids) { $tagIdentifier = json_encode($ids); return $this->cache->tags([$this->entityName, 'global'])->remember("{$this->locale}.{$this->entityName}.findByMany.{$tagIdentifier}", $this->cacheTime, function () use($ids) { return $this->repository->findByMany($ids); }); }