public function pull($name, $default = null)
    {
        $result = $this->get($name, false);
        if ($result) {
            $this->delete($name);

            return $result;
        } else {
            return $default;
        }
    }
public function pull($name, $default = null)
    {
        $result = $this->get($name, false);
        if ($result) {
            $this->delete($name);

            return $result;
        } else {
            return $default;
        }
    }
public function pull ( $ name , $ default = null ) { $ result = $ this -> get ( $ name , false ) ; if ( $ result ) { $ this -> delete ( $ name ) ; return $ result ; } else { return $ default ; } }
Fetches a value from the cache and delete it.

@param string $name    The name of the item in store.
@param mixed  $default Default value to return if the key does not exist.

@return mixed

@author : evalor <master@evalor.cn>
Fetches a value from the cache and delete it .