Skip to content

Commit a892785

Browse files
authored
Fixed #497 (#498)
* Added Wiki link in ISSUE_TEMPLATE.md * Fixed #497
1 parent 1c819f4 commit a892785

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/phpFastCache/Helper/Psr16Adapter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ public function setMultiple($values, $ttl = null)
142142
try {
143143
foreach ($values as $key => $value) {
144144
$cacheItem = $this->internalCacheInstance->getItem($key)->set($value);
145+
if ($ttl) {
146+
$cacheItem->expiresAfter($ttl);
147+
}
145148
$this->internalCacheInstance->saveDeferred($cacheItem);
146149
unset($cacheItem);
147150
}

0 commit comments

Comments
 (0)