Used to read and delete a value from a key
@param string $key Key
@return mixed
@since 2.16.10
@uses delete()
@uses get()
558800
public function consume($key)
    {
        $value = $this->get($key);
        $this->delete($key);

        return $value;
    }
503513
public function get($key)
    {
        if (isset($this->cache[$key])) {
            list($expires, $value) = $this->cache[$key];
            if (!$expires || ($expires >= microtime(true))) {
                return $value;
            }
            unset($this->cache[$key]);
        }
        return false;
    }
42175
public function delete($key = '')
    {
        $node = $this->mainNode->getByKey($key);
        if (empty($node)) return $this->mainNode;
        $this->mainNode->children->removeNode($node);
        unset($node);

        return $this->mainNode;
    }
1132672
public function delete($key)
    {

        $deleted = false;

        $catalog = \array_keys($this->getKeys());
        foreach ($catalog as $k) {

            if (substr($k, 0, strlen($key)) == $key) {

                $delete = $this->memcache->delete($this->namespace . $key);
                if ($delete) {
                    $this->catalogKeyDelete($k);
                    $deleted = true;
                }
            }
        }

        return $deleted;
    }
673233
public function delete(string $key): bool
    {
        $this->checkConnection(__METHOD__);
        $delete = $this->engine->delete($key);
        if ($delete && $this->index) {
            $this->index->events()
                ->trigger(Indexing::EVENT_ON_DELETE)
                ->params($key)
                ->fire();
        }

        return $delete;
    }
888337
public function read($key)
    {
        if ($value = $this->redis->get($key)) {
            $arr = unserialize($value);
            $this->changed = $arr['changed'];
            $this->ip      = $arr['ip'];
            $this->vars    = $arr['vars'];
            $this->key     = $key;

            return !empty($this->vars) ? (string) $this->vars : '';
        }

        return '';
    }
392517
public function delete($key)
    {
        key_exists_or_fail($key, $this->data);
        unset($this->data[$key]);
        $this->data = array_values($this->data);

        return $this;
    }
20103
public function delete($key)
	{
		if ($this->readOnly)
		{
			throw new \RuntimeException('Changing values on this Data Container is not allowed.');
		}

		$this->isModified = true;

		if (($result = Arr::delete($this->data, $key)) === false and $this->parentEnabled)
		{
			$result = $this->parent->delete($key);
		}

		return $result;
	}
334379
public static function getAndRemove(string $key)
    {
        static::startSessionIfNotHasStartedForceWrite();

        $value = static::get($key);
        static::remove($key);

        return $value;
    }
1020333
public function delete($key)
    {
        $file = $this->getFilePath($key);

        if (\is_dir($file)) {
            $this->clearDir($file);
            $deleted = \rmdir($file);
        } elseif (\file_exists($file)) {
            $deleted = \unlink($file);
        } else {
            $deleted = false;
        }

        if ($deleted) {
            $this->catalogKeyDelete($key);
        }

        return $deleted;
    }
1210131
public function delete($key)
    {
        $key = (string)$key;

        if (\array_key_exists($key, self::$registry)) {
            unset(self::$registry[$key]);
        }
        return $this;
    }
76028
public function deleteValue($key)
    {
        $this->ssdbHandle->hdel($this->cache_keys_hash, $key);
        return $this->ssdbHandle->del($key);
    }
140758
public function getDelete($key = null)
    {
        if ($key === null) {
            return $this->delete;
        } else {
            return (isset($this->delete[$key])) ? $this->delete[$key] : null;
        }
    }
986823
public function read($key)
    {
        $key = $this->_key($key);

        return $this->_Memcached->get($key);
    }
59443
public function delete($key)
    {
        /**
         * delete <key> [noreply]\r\n
         */

        // Build packet to send ...
        $data = self::COMMAND_DELETE . self::COMMAND_SEPARATOR  .
            $key                     . self::COMMAND_TERMINATOR;

        return $this->send(self::COMMAND_DELETE, $data);
    }
1044959
public function get($key)
    {
        $connection = $this->getConnection($key);
        $this->writeToRemote(array(
            'cmd' => 'get',
            'key' => $key,
        ), $connection);
        return $this->readFromRemote($connection);
    }
966597
public function remove($key) {
        $key = $this->secureKey($key);
        
        if (isset($_SESSION[$key])) unset($_SESSION[$key]);
        
        return $key;
    }