Skip to content

Commit

Permalink
Add clear cache method
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored Jul 30, 2024
1 parent 27a37b7 commit c341e87
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Scout/Scout.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public function get(): Collection
);
}

public function clear(): void
{
Cache::store($this->getCacheStore())->forget($this->getCacheKey());
}

abstract protected function getComponentStructures(): ComponentStructureScout;

protected function buildCollection(): Collection
Expand Down

0 comments on commit c341e87

Please sign in to comment.