Code Duplication    Length = 3-4 lines in 2 locations

src/Psr16/MemcachedEngine.php 2 locations

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