Stash\Item::__destruct PHP Method

__destruct() public method

This clears out any locks that are present if this Item is prematurely destructed.
public __destruct ( )
    public function __destruct()
    {
        if (isset($this->stampedeRunning) && $this->stampedeRunning === true) {
            $spkey = $this->key;
            $spkey[0] = 'sp';
            $this->driver->clear($spkey);
        }
    }