Remove an item from the cache.

@param   string  $key
@return  bool
160727
public function forget($key)
	{
		@list($group, $name) = $this->id($key);

		$this->engine->setOption('cacheDir', $this->directory . DS . $group . DS);

		$success = $this->engine->remove($name, $group);

		if ($success == true)
		{
			return $success;
		}

		return false;
	}
505707
public function remove($key): bool {
        if (isset($this->array[$key])) {
            unset($this->array[$key]);
            return true;
        }
        return false;
    }
668157
public function delete($key)
    {
        $file = $this->path($key);

        if ($this->fileSystem->exists($file))
        {
            $this->fileSystem->delete($file);
        }

        return true;
    }
354388
public function remove($key)
    {
        $this->initializeOnDemand();

        if ($this->has($key) && $this->cacheMapper->delete($key)) {
            unset($this->cache[$key]);
            return true;
        } else {
            return false;
        }
    }
607052
public function deleteHasCache($key)
    {
        if ($this->isCachable()) {
            return Yii::$app->cache->delete($key);
        }
        
        return false;
    }
1076281
public function delete($key)
    {
        if (!$this->enabled)
            return true;

        $this->Logger->debug("Delete key: {$key}");
        return $this->db->queryExec("DELETE FROM cache WHERE key='" . $this->key($key). "'");
    }
538983
public function forget($key)
	{
		$file = $this->path($key);

		if (file_exists($file))
		{
			return unlink($file);
		}

		return true;
	}
1192321
public function removeByKey(string $key): bool
    {
        if (isset($this->routes[$key])) {
            unset($this->routes[$key]);
            return true;
        }
        return false;
    }
552755
public function removeGetItem($key)
    {
        if (isset($this->get[$key])) {
            unset($this->get[$key]);
            return true;
        } else {
            return false;
        }
    }
702546
public function remove( $key )
    {
        if ( $key instanceof Interfaces\SeedLike )
        {
            $key = $key->getId();
        }

        if ( !Utility\Option::contains( $this->_bag, $key ) )
        {
            return false;
        }

        Utility\Option::remove( $this->_bag, $key );

        return true;
    }
985882
public function remove($key)
    {
        if (!$this->hasConnection()) {
            // @codeCoverageIgnoreStart
            return false;
            // @codeCoverageIgnoreEnd
        }

        try {
            return $this->memcache->delete($key);
        // @codeCoverageIgnoreStart
        } catch (\Exception $e) {
        }

        return false;
        // @codeCoverageIgnoreEnd
    }
663871
public function removeKey($key)
    {
        if ($this->hasKey($key)) {
            unset($this->container[$key]);
            return true;
        } else {
            return false;
        }
    }
258319
public function remove($key)
    {
        $position = $this->getPosition($key);
        if (false !== $position) {
            $this->file->remove($position);
            $this->rebuildIndex();

            return true;
        }

        return false;
    }
255520
public function removeFile($key)
    {
        if (isset($this->files[$key])) {
            unset($this->files[$key]);
            return true;
        } else {
            return false;
        }
    }
1150121
public function forget($key)
    {
        $filename = $this->_hash(array($key));

        return (bool) $this->_delete($filename);
    }
855039
public function remove( $key )
	{
		if( !isset( $GLOBALS[$this->poolKey][$key] ) )
			return false;
		unset( $GLOBALS[$this->poolKey][$key] );
		return true;	
	}
304899
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->data[$key]);
            return true;
        } else {
            return false;
        }
    }