We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289472c commit 175ddbbCopy full SHA for 175ddbb
src/Psr16/MemcachedEngine.php
@@ -87,7 +87,7 @@ public function set($key, $value, $ttl = null)
87
{
88
$this->lazyLoadMemCachedServers();
89
90
- $this->memCached->set($this->fixKey($key), serialize($value), $ttl);
+ $this->memCached->set($this->fixKey($key), serialize($value), is_null($ttl) ? 0 : $ttl);
91
$this->logger->info("[Memcached] Set '$key' result " . $this->memCached->getResultCode());
92
if ($this->memCached->getResultCode() !== Memcached::RES_SUCCESS) {
93
$this->logger->error("[Memcached] Set '$key' failed with status " . $this->memCached->getResultCode());
0 commit comments