Skip to content

Commit fcc3bdf

Browse files
author
Yitz Willroth
committed
:test: fix failing memoized store test
1 parent a39b0d7 commit fcc3bdf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Illuminate/Support/Facades/Cache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
* @method static mixed flexible(string $key, array $ttl, callable $callback, array|null $lock = null, bool $alwaysDefer = false)
3737
* @method static bool forget(string $key)
3838
* @method static bool delete(string $key)
39+
* @method static bool touch(string $key, \DateTimeInterface|\DateInterval|int|null $ttl = null)
3940
* @method static bool deleteMultiple(iterable $keys)
4041
* @method static bool clear()
4142
* @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)

tests/Integration/Cache/MemoizedStoreTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,11 @@ public function forget($key)
461461
return Cache::forget(...func_get_args());
462462
}
463463

464+
public function touch(string $key, int $ttl): bool
465+
{
466+
return Cache::touch(...func_get_args());
467+
}
468+
464469
public function flush()
465470
{
466471
return Cache::flush(...func_get_args());

0 commit comments

Comments
 (0)