Code Duplication    Length = 3-4 lines in 2 locations

src/Psr16/MemcachedEngine.php 2 locations

@@ 67-70 (lines=4) @@
64
        $this->lazyLoadMemCachedServers();
65
66
        $value = $this->memCached->get($this->fixKey($key));
67
        if ($this->memCached->getResultCode() !== Memcached::RES_SUCCESS) {
68
            $this->logger->info("[Memcached] Cache '$key' missed with status " . $this->memCached->getResultCode());
69
            return $default;
70
        }
71
72
        return unserialize($value);
73
    }
@@ 87-89 (lines=3) @@
84
85
        $this->memCached->set($this->fixKey($key), serialize($value), $ttl);
86
        $this->logger->info("[Memcached] Set '$key' result " . $this->memCached->getResultCode());
87
        if ($this->memCached->getResultCode() !== Memcached::RES_SUCCESS) {
88
            $this->logger->error("[Memcached] Set '$key' failed with status " . $this->memCached->getResultCode());
89
        }
90
91
        return $this->memCached->getResultCode() === Memcached::RES_SUCCESS;
92
    }