Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Jul 14, 2017
1 parent e4ebf15 commit 71a306b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/phpFastCache/Helper/Psr16Adapter.php
Expand Up @@ -142,6 +142,9 @@ public function setMultiple($values, $ttl = null)
try {
foreach ($values as $key => $value) {
$cacheItem = $this->internalCacheInstance->getItem($key)->set($value);
if ($ttl) {
$cacheItem->expiresAfter($ttl);
}
$this->internalCacheInstance->saveDeferred($cacheItem);
unset($cacheItem);
}
Expand Down

0 comments on commit 71a306b

Please sign in to comment.