Delete a key from the cache

@param string $key Identifier for the data
@return bool True if the value was successfully deleted, false if it didn't exist or couldn't be removed
437740
public function delete($key)
    {
        $key = $this->_key($key);
        unset($this->data[$key]);

        return true;
    }
873607
public function remove($key) {
        X::logger()->trace("CCache remove $key");
        $file = $this->key2file($key);
        if (is_file($file)) {
            unlink($file);
            return true;
        }
        return false;
    }
953540
public function delete($key)
    {
        $permission   =   $this->findByKey($key);
        if (! isset($permission)) {
            return true;
        }

        return $permission->delete();
    }
364658
public function delete($key)
    {
        $key = $this->_key($key);

        return $this->_Memcached->delete($key);
    }
325748
public function delete(/*# string */ $key)/*# : bool */
    {
        $ends = [ $this->front, $this->back ];
        foreach ($ends as $end) {
            if (!$end->delete($key)) {
                return $this->falseAndSetError(
                    $end->getError(),
                    $end->getErrorCode()
                );
            }
        }
        return $this->trueAndFlushError();
    }
69886
public function delete($key) {
        if (!is_array($key)) {
            $key = array('key' => $key);
        }
        $key = $key['key'];
        $result = isset($this->store[$key]);
        unset($this->store[$key]);
        if ($this->maxsize !== false) {
            $this->storecount--;
        }
        return $result;
    }
304899
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->data[$key]);
            return true;
        } else {
            return false;
        }
    }
663871
public function removeKey($key)
    {
        if ($this->hasKey($key)) {
            unset($this->container[$key]);
            return true;
        } else {
            return false;
        }
    }
306821
protected function deleteValue($key)
    {
        $this->db->createCommand()
            ->delete($this->cacheTable, ['id' => $key])
            ->execute();

        return true;
    }
531153
public function delete($key)
	{
		$this->validateKey($key);
		$this->namespace && $this->prefixValue($key);

		return $this->doDelete($key);
	}
880129
public function delete(string $key): bool
    {
        /**
         * @var $handle \Memcache|\Memcached
         */
        $handle = $this->_handle;
        $ret = $handle->delete($key);
        Debug::setCache(static::$type, 'delete', $key, $ret);
        return $ret;
    }
951110
public function delete($key)
    {
        $retunValue = false;
        $path = $this->getPath($key);
        $data = $this->getFromCache();
        $node = &$data;
        $cnt  = count($path) - 1;

        for ($ii=0; $ii<=count($path); $ii++) {
            if ($ii == $cnt) {
                unset($node[$path[$ii]]);
                $this->setToCache($data);
                $retunValue = true;
                break;
            }

            $node = &$node[$path[$ii]];
        }

        return $retunValue;
    }
229080
public function delete($key){
        $this->connection->where('keyCache = :key', array('key' => $key));
        return $this->connection->delete($this->table);
    }
1203512
public function clear($key) {
        if ($this->exists($key)) {
            unset($this->data[$key]);

            return true;
        }

        return false;
    }
525805
public function delete($key)
    {
        $this->type === 2 && $key = $this->conf['prefix'] . $key;
        return $this->memcache->delete($key);
    }
1100077
public function remove($key) {
       if (!isset($this->hashmap[$key])) { return false; }
       $nodeToRemove = $this->hashmap[$key];
       $this->detach($nodeToRemove);
       unset($this->hashmap[$nodeToRemove->getKey()]);
       return true;
     }
167612
public function delete($key)
    {
        if (!$this->enabled)
            return true;

        $this->Logger->debug("Delete key: {$key}");

        $apcMethod = $this->apcFuncPrefix.'_delete';
        return $apcMethod($this->key($key));
    }