Remove and get the first element in a list
@param string $key
@return string|null
420338
public function lpop($key)
    {
        $this->init();
        $result = $this->driver->lpop($key);
        return $this->convertFalseToNull($result);
    }
134566
public function remove($key)
    {
        $array = &$this->array;

        if (is_null($key)) {
            return $array;
        }

        $keys = explode('.', $this->escapedDotKeyToUnderscore($key));

        while (count($keys) > 1) {
            $key = $this->underscoreDotKeyToDot(array_shift($keys));

            if (isset($array[$key]) === false || is_array($array[$key]) === false) {
                $array[$key] = [];
            }

            $array = &$array[$key];
        }

        unset($array[$this->underscoreDotKeyToDot(array_shift($keys))]);

        return $this->array;
    }
427039
public function remove($key) {
		$key = $this->extractKey($key);
		if (isset($this->collection[$key])) {
			$element = $this->collection[$key];
			unset($this->collection[$key]);
			
			return $element;
		}
	}
651595
public function take(string $key)
    {
        $key = $this->getValue($key);
        $this->remove($key);
        return $key;
    }
397639
public function getAndRemove(string $key)
	{
		$storedValue = $this->get($key);

		if($storedValue !== false)
		{
			$this->remove($key);
		}

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

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

        return $item;
    }
864902
public function getNodeByKey($key): ?Node {
        $arrayIndex = $this->getBucketIndex($key);
        /*
         * the list is requested from the array based on
         * the array index hash.
         */
        /** @var SinglyLinkedList $list */
        if (!isset($this->bucket[$arrayIndex])) {
            return null;
        }
        $list = $this->bucket[$arrayIndex];
        if (!$list->containsKey($key)) {
            return null;
        }
        $node = $list->getNodeByKey($key);
        return $node;
    }
1360512
public function pull($key)
    {
        $item = $this->get($key);

        $this->remove($key);

        return $item;
    }
929288
public function del($key)
    {
        if (is_string($key)) {
            $key = [$key];
        }

        return $this->getConnection()->del($key);
    }
380584
protected function removeTableFromKey(string $key): string
    {
        if (strpos($key, '.') === false) {
            return $key;
        }
        $keyParts = explode('.', $key);
        return array_pop($keyParts);
    }
579790
public function offsetGet($key)
    {
        if (isset($this->firstItems[$key])) {
            return $this->firstItems[$key];
        }

        if (isset($this->lastItems[$key])) {
            return $this->lastItems[$key];
        }

        $record = $this->list->find($this->keyField, $key);

        if ($record) {
            $col = $this->valueField;

            return $record->$col;
        }

        return null;
    }
966597
public function remove($key) {
        $key = $this->secureKey($key);
        
        if (isset($_SESSION[$key])) unset($_SESSION[$key]);
        
        return $key;
    }
1240808
public function remove($key)
    {
        if ($key instanceof UniqueId) {
            $key = $key->id();
        }

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

        return null;
    }
1187718
public function get($key)
    {
        $env = $this->parseFile();

        $result = $env->filter(function (Collection $value) use ($key) {
            return $value->first() == $key;
        })->first();

        return $result instanceof Collection ? $result->get(1) : $result;
    }
1323225
public function get($key = null)
    {
        if (!isset($this->list[$key])) return null;
        $this->currentIdentifier = $this->cacheListing[$key]->getId();

        return $this->list[$key];
    }
972782
final protected function getWithSeparator($key)
    {
        $structure = $this;
        $splitKeys = explode($this->separator, $key);
        foreach ($splitKeys as $key) {
            if (!isset($structure[$key])) {
                return null;
            }
            if (!is_array($structure[$key])) {
                return $structure[$key];
            }
            $structure = $structure[$key];
        }
        return $structure;
    }