Remove an item.

@param  string $key
@return bool

@triggers removeItem.pre(PreEvent)
@triggers removeItem.post(PostEvent)
@triggers removeItem.exception(ExceptionEvent)
483034
public function removeItem($key)
    {
        if (!$this->getOptions()->getEnabled()) {
            return false;
        }

        $this->normalizeKey($key);

        $result = false;
        try {
            $result = $this->internalRemoveItem($key);
        } catch (\Exception $e) {
        }

        return $result;
    }
184236
public function remove($key) {
        $value = $this->elements[$this->hash($key)];
        unset($this->elements[$this->hash($key)]);
        $this->fire(new MapRemoveEvent($key, $value));
        return $value;
    }
1011376
public static function remove($key) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		if($key && isset(static :: $data[$key])) {
			unset(static :: $data[$key]);
		}
	}
747575
public function remove ($key) {
        if (!$this->getConnection ()->getClient ()->zrem ($this->name , $key)) {
            return false;
        }
        $this->_data = null;
        $this->_count = null;
        return true;
    }
333609
public function remove($key)
    {
        if (! $this->enabled) {
            return;
        }
        $file = $this->getPath($key);
        if (! file_exists($file)) {
            return true;
        }

        set_error_handler(function () {
            throw new Exception('An error occurred.');
        }, E_WARNING);

        try {
            unlink($file);
        } catch (Exception $ex) {
            restore_error_handler();

            return false;
        }
        restore_error_handler();

        return true;
    }
323866
public function remove($key)
    {
        if ($this->has($key)) {
            unset($this->session[$key]);
            return true;
        } else {
            return false;
        }
    }
1272755
public function deleteItem($key)
    {
        $cacheFile = __cache_path().md5($key);
        if (file_exists($cacheFile)) {
            unlink($cacheFile);
        }

        return $this;
    }
517428
public function forget(string $key): bool
    {
        $items = $this->items;

        \array_push($this->removedItems, $key);
        Arr::forget($items, $key);

        $this->items = $items;

        return true;
    }
1360512
public function pull($key)
    {
        $item = $this->get($key);

        $this->remove($key);

        return $item;
    }
1043177
public function remove($key)
    {
        $key = strtr(strtolower($key), '_', '-');
        unset($this->_data[$key]);
        return $this;
    }
663871
public function removeKey($key)
    {
        if ($this->hasKey($key)) {
            unset($this->container[$key]);
            return true;
        } else {
            return false;
        }
    }
1373111
public function remove($key)
    {
        if ($this->has($key)) {
            return wincache_ucache_delete($key);
        } else {
            throw new RuntimeException(sprintf(
                'Attempted to delete non-existing key "%s"', $key
            ));
        }
    }
1053577
public function forget( $key )
	{
		$success = $this->store->forget( $this->itemKey( $key ) );

		$this->fireCacheEvent( 'delete', [$key] );

		return $success;
	}
815394
public function remove($key)
    {
        if (!$this->containsKey($key)) {
            return null;
        }

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

        return $item;
    }
1341989
public function delete($key)
    {
        if (null !== $this->lastItem && $this->lastItem->getKey() === $key) {
            $this->lastItem = null;
        }

        return $this->cachePool->deleteItem($key);
    }
1042690
public function forget($key)
    {
        list($baseKey, $searchKey) = $this->fetchKey($key);

        $registry = $this->get($baseKey);

        if ($registry === null) {
            $registry = $this->cache->get($baseKey);
        }

        if (is_null($registry)) {
            throw new Exception("Item [$key] does not exists");
        }

        if ($baseKey !== $searchKey)
        {
            array_forget($registry, $searchKey);
            $this->database->table($this->config['table'])->where('key', '=', $baseKey)->update(array('value' => json_encode($registry)));

            // Update cache
            $this->cache->add($baseKey, $registry);
        }
        else
        {
            $this->database->table($this->config['table'])->where('key', '=', $baseKey)->delete();

            // Remove from cache
            $this->cache->remove($baseKey);
        }

        return true;
    }
480823
public function deleteItem($key)
    {
        $this->connect();

        $this->driver->delete($key);

        $rc = $this->driver->getResultCode();

        if (($rc != \Memcached::RES_SUCCESS)) {
            return $this;
        }

        return $this;
    }