Skip to content

Commit 175ddbb

Browse files
committed
Fix memcached deprecation
1 parent 289472c commit 175ddbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psr16/MemcachedEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function set($key, $value, $ttl = null)
8787
{
8888
$this->lazyLoadMemCachedServers();
8989

90-
$this->memCached->set($this->fixKey($key), serialize($value), $ttl);
90+
$this->memCached->set($this->fixKey($key), serialize($value), is_null($ttl) ? 0 : $ttl);
9191
$this->logger->info("[Memcached] Set '$key' result " . $this->memCached->getResultCode());
9292
if ($this->memCached->getResultCode() !== Memcached::RES_SUCCESS) {
9393
$this->logger->error("[Memcached] Set '$key' failed with status " . $this->memCached->getResultCode());

0 commit comments

Comments
 (0)