Code Duplication    Length = 11-11 lines in 2 locations

WebStream/Cache/Driver/Memcached.php 2 locations

@@ 101-111 (lines=11) @@
98
    /**
99
     * {@inheritdoc}
100
     */
101
    public function get($key)
102
    {
103
        if (!$this->isAvailableCacheLibrary()) {
104
            return false;
105
        }
106
        $key = $this->cachePrefix . $key;
107
        $value = $this->cache->get($key);
108
        $this->logger->info("Execute cache read: " . $key);
109
110
        return $this->verifyReturnCode(\Memcached::RES_SUCCESS) ? $value : null;
111
    }
112
113
    /**
114
     * {@inheritdoc}
@@ 116-126 (lines=11) @@
113
    /**
114
     * {@inheritdoc}
115
     */
116
    public function delete($key): bool
117
    {
118
        if (!$this->isAvailableCacheLibrary()) {
119
            return false;
120
        }
121
        $key = $this->cachePrefix . $key;
122
        $this->cache->delete($key);
123
        $this->logger->info("Execute cache cleared: " . $key);
124
125
        return $this->verifyReturnCode(\Memcached::RES_NOTFOUND);
126
    }
127
128
    /**
129
     * {@inheritdoc}