Skip to content

Commit

Permalink
improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
dansysanalyst committed May 6, 2024
1 parent 6c3c0df commit 58b8c77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Support/PowerGridTableCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

final class PowerGridTableCache
{
public const THREE_HOURS = 60 * 60 * 3;

private static function list(): Collection
{
$cachedTableTags = rescue(fn () => Cache::get('pg_cached_tables')) ?? '';
Expand All @@ -23,7 +25,7 @@ public static function put(string $modelTable, array $tableColumns): array

return (array) Cache::remember(
$tag,
60 * 60 * 3,
self::THREE_HOURS,
fn () => $tableColumns
);
}
Expand Down

0 comments on commit 58b8c77

Please sign in to comment.