Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 24b0957

Browse filesBrowse files
author
Yitz Willroth
committed
:test: fix failing memoized store test
1 parent 3c6f9e9 commit 24b0957
Copy full SHA for 24b0957

File tree

Expand file treeCollapse file tree

2 files changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-0
lines changed

‎src/Illuminate/Support/Facades/Cache.php

Copy file name to clipboardExpand all lines: src/Illuminate/Support/Facades/Cache.php
+1Lines 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)
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

Copy file name to clipboardExpand all lines: tests/Integration/Cache/MemoizedStoreTest.php
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.