Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
francoism90 authored and github-actions[bot] committed Oct 30, 2024
1 parent 4e2629f commit ba8f023
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ModelCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ public function shouldCache(Model $model, string $key, mixed $value = null): boo
public function cache(Model $model, string $key, mixed $value = null, DateTime|int|null $ttl = null): mixed
{
$ttl ??= $this->cacheProfile->cacheValueUntil($model, $key);

$hash = $this->hasher->getHashFor($model, $key);

$this->cache->put($hash, $value, $ttl);

return $hash;
Expand All @@ -54,7 +54,7 @@ public function hasBeenCached(Model $model, string $key): bool
}

public function getCachedValue(Model $model, string $key): mixed
{
{
return $this->cache->get($this->hasher->getHashFor($model, $key));
}

Expand Down

0 comments on commit ba8f023

Please sign in to comment.