Code Duplication    Length = 10-10 lines in 2 locations

src/think/cache/driver/Memcache.php 1 location

@@ 173-182 (lines=10) @@
170
     * @param bool|false $ttl
171
     * @return bool
172
     */
173
    public function delete($name, $ttl = false): bool
174
    {
175
        $this->writeTimes++;
176
177
        $key = $this->getCacheKey($name);
178
179
        return false === $ttl ?
180
        $this->handler->delete($key) :
181
        $this->handler->delete($key, $ttl);
182
    }
183
184
    /**
185
     * 清除缓存

src/think/cache/driver/Memcached.php 1 location

@@ 187-196 (lines=10) @@
184
     * @param bool|false $ttl
185
     * @return bool
186
     */
187
    public function delete($name, $ttl = false): bool
188
    {
189
        $this->writeTimes++;
190
191
        $key = $this->getCacheKey($name);
192
193
        return false === $ttl ?
194
            $this->handler->delete($key) :
195
            $this->handler->delete($key, $ttl);
196
    }
197
198
    /**
199
     * 清除缓存