delete method

@param $key  string
@param $time int

@return boolean
176936
public function delete($key, $time = 0)
    {

        if (parent::delete($key, ($time ? $time : null))) {
            unset($this->cacheListing [$key]);
            $this->saveCacheListing();

            return true;
        }

        return false;
    }
37902
public function delete($key)
	{
		if(!$this->exists($key)) {
			return false;
		}

		unset($this->data[$key]);

		return true;
	}
311734
public function delete($key)
    {
        if ($this->redis->hDel($this->prefix, $key) > 0) {
            return true;
        }
        return false;
    }
1279213
public function delete(string $key) : bool
    {
        if (!$this->cacheStore->delete($key)) {
            // Unlikely, but safer.
            throw new RuntimeException(
                'Underlying cache store type[' . get_class($this->cacheStore)
                . '] failed to delete cache item, key[' . $key . '].'
            );
        }
        return true;
    }
121832
public function delete($key, $onResponse = null, $time = 0)
    {
        $this->getConnectionByKey($key, function ($conn) use ($key, $time, $onResponse) {
            if (!$conn->connected) {
                return;
            }
            if ($onResponse !== null) {
                $conn->onResponse->push($onResponse);
                $conn->checkFree();
            }
            $conn->writeln('delete ' . $this->config->prefix->value . $key . ' ' . $time);
        });
    }
1218419
public function delete($key = '')
    {
        $nodeList = $this->mainNode->getByKey($key);
        if (empty($nodeList)) {
            true;
        }

        foreach ($nodeList as $node) {
            $node->delete();
        }

        unset($node);

        return true;
    }
800051
public function delete($key)
    {
        try {
            return (bool) $this->db->from($this->table)
                    ->where($this->columns['key'])->eq($this->prefix . $key)
                    ->delete();
        } catch (PDOException $e) {
            return false;
        }
    }
1271855
function delete($key) {
        parent::delete($key);
        if($this !== $this->client->users) {
            $this->client->users->delete($key);
        }
        
        return $this;
    }
851682
public function delete($key)
    {
        $this->pinba()->timerDelete($this->getTimer($key));
        $this->unsetTimer($key);

        return $this;
    }
1066329
public function delete($key, $timeout = 0) {
		$fileName = $this->getFileName($key);
		if (file_exists($fileName)) {
			if ($timeout > 0) {
				$timeout = time() + $timeout;
				return touch($fileName, $timeout);
			} else {
				return unlink($fileName);
			}
		} else {
			return true;
		}
	}
306821
protected function deleteValue($key)
    {
        $this->db->createCommand()
            ->delete($this->cacheTable, ['id' => $key])
            ->execute();

        return true;
    }
1205390
public function del($key)
    {
        if (isset($this->value[$key])) {
            $t = $this->value[$key];
            unset($this->value[$key]);
            return $t;
        }

        return null;
    }
864295
public function delete($key): bool
    {
        if ($this->has($key)) {
            $this->unset($key);
            return true;
        }

        return false;
    }
283078
public function detach(Time $time)
    {
        $key = $this->search($time);

        if ($key !== false) {

            unset($this->items[$key]);
        }

        return $this;
    }
230205
public function forget($key)
    {
        if ($this->files->exists($file = $this->path($key))) {
            return $this->files->delete($file);
        }

        return false;
    }
813441
public function delete(string $key): bool
    {
        //create file name
        $file = $this->dir.'/'.\sha1($key).'.php';

        //chek if file exist and delete
        if (\file_exists($file)) {
            \unlink($file);

            return true;
        }

        return false;
    }
741036
public function delete($key)
	{
		if (isset($this->jar[$key]) and ! $this->jar[$key]->isDeleted())
		{
			return $this->jar[$key]->delete();
		}
		elseif ($this->has($key))
		{
			return $this->parent->delete($key);
		}

		return false;
	}