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

Sign up
Appearance settings

Commit d9a65d3

Browse files
authored
Add deprecation notice for enabledCache method (#618)
The enabledCache method is now marked as deprecated starting from version 4.1 and will be removed in version 5.0. Users are encouraged to use the Http Client for caching responses instead. This change aligns with the planned removal of this method in the next
1 parent 5e7331f commit d9a65d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎src/Library/KeyManagement/UrlKeySetFactory.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ public function __construct(
2525
$this->cacheItemPool = new NullAdapter();
2626
}
2727

28+
/**
29+
* @deprecated since 4.1 and will be removed in 5.0. Please use the Http Client to cache the responses instead.
30+
*/
2831
public function enabledCache(CacheItemPoolInterface $cacheItemPool, int $expiresAfter = 3600): void
2932
{
3033
$this->cacheItemPool = $cacheItemPool;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /