public function pull(string $key, $default = null)
    {
        $result = $this->get($key, $default);

        $this->delete($key);

        return $result;
    }
public function pull(string $key, $default = null)
    {
        $result = $this->get($key, $default);

        $this->delete($key);

        return $result;
    }
public function pull ( string $ key , $ default = null ) { $ result = $ this -> get ( $ key , $ default ) ; $ this -> delete ( $ key ) ; return $ result ; }
Retrieve an item from the cache and delete it.

@param string $key     键
@param mixed  $default 默认值

@return mixed|null
Retrieve an item from the cache and delete it .