8000 [13.x] `Cache::touch()` & `Store::touch()` for TTL Extension by yitzwillroth · Pull Request #55954 · laravel/framework · GitHub
[go: up one dir, main page]

Skip to content

[13.x] Cache::touch() & Store::touch() for TTL Extension #55954

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
:test: fix failing memoized store test
  • Loading branch information
Yitz Willroth committed Jun 9, 2025
commit 24b0957da08d67565dbe21d6eb54f53a2b87c08c
1 change: 1 addition & 0 deletions src/Illuminate/Support/Facades/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* @method static mixed flexible(string $key, array $ttl, callable $callback, array|null $lock = null)
* @method static bool forget(string $key)
* @method static bool delete(string $key)
* @method static bool touch(string $key, \DateTimeInterface|\DateInterval|int|null $ttl = null)
* @method static bool deleteMultiple(iterable $keys)
* @method static bool clear()
* @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)
Expand Down
5 changes: 5 additions & 0 deletions tests/Integration/Cache/MemoizedStoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ public function forget($key)
return Cache::forget(...func_get_args());
}

public function touch(string $key, int $ttl): bool
{
return Cache::touch(...func_get_args());
}

public function flush()
{
return Cache::flush(...func_get_args());
Expand Down
0