Skip to content

Commit

Permalink
fix: add missing default params to cache resolver save method
Browse files Browse the repository at this point in the history
  • Loading branch information
lukmzig committed Sep 29, 2023
1 parent ef3a1b7 commit c650a69
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Lib/CacheResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,21 @@

namespace Pimcore\Bundle\StaticResolverBundle\Lib;

use DateInterval;
use Pimcore\Cache;

class CacheResolver
{
public function save(mixed $data, string $key, array $tags = []): void
public function save(
mixed $data,
string $key,
array $tags = [],
DateInterval|int $lifetime = null,
int $priority = 0,
bool $force = false
): void
{
Cache::save($data, $key, $tags);
Cache::save($data, $key, $tags, $lifetime, $priority, $force);
}

public function load(string $key): mixed
Expand Down

0 comments on commit c650a69

Please sign in to comment.