public function consume($key)
    {
        $value = $this->get($key);
        $this->delete($key);

        return $value;
    }
public function consume($key)
    {
        $value = $this->get($key);
        $this->delete($key);

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