Skip to content

Commit ee6dd40

Browse files
[Cache] Fix Couchbase expiration test
1 parent 378e5d8 commit ee6dd40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Cache/Adapter/CouchbaseCollectionAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ protected function doSave(array $values, $lifetime): array|bool
183183
}
184184

185185
$upsertOptions = new UpsertOptions();
186-
$upsertOptions->expiry(\DateTimeImmutable::createFromFormat('U', time() + $lifetime));
186+
$upsertOptions->expiry($lifetime);
187187

188188
$ko = [];
189189
foreach ($values as $key => $value) {

0 commit comments

Comments
 (0)