From ac027f3f66050af7c46d734417ff13b242610614 Mon Sep 17 00:00:00 2001 From: Moritz Mazetti Date: Mon, 26 Oct 2026 08:57:36 +0100 Subject: [PATCH] Docs: Correct the Repository methods listed in the upgrade guide Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01GGNGyJLoFTM5C474gZPW5q --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6d4e123..7345bae 100644 --- a/README.md +++ b/README.md @@ -413,8 +413,8 @@ Version 2 replaces Laravel's cache tags with tag versioning. Existing cache entr - **Cached responses:** responses are stored as their status, headers and content, so caching works even if `serializable_classes` is restricted in `config/cache.php` (the default in Laravel 13). A cached response is returned as an `Illuminate\Http\Response` with the same status, headers and content, whatever class the original response had. Responses without content, such as streamed responses and file downloads, are not cached. -- **`Repository`:** the methods `get()`, `has()`, `getStore()`, `supportsTags()`, `serialize()` and `hydrate()` were removed, along with custom - serialization through a `Repository` subclass. Its constructor takes the tag TTL as a third argument. +- **`Repository`:** `has()`, `getStore()`, `supportsTags()` and `serialize()` were removed, along with custom serialization through a `Repository` + subclass. `get()`, `put()` and `delete()` have new signatures. Its constructor takes the tag TTL as a third argument. - **Configuration:** `store` defaults to `null` (your default cache store) instead of `file`. The new `tag_ttl` option sets how long tag versions are kept (30 days by default) and must be at least one second. The `failover` cache store is refused with an `InvalidArgumentException`. - **Stores:** tags work on every cache store; a store with tag support is no longer needed.