Stash\Item::disable PHP Method

disable() public method

public disable ( )
    public function disable()
    {
        $this->cacheEnabled = false;
        return true;
    }

Usage Example

 public function testDisableCacheWillNeverCallDriver()
 {
     $stash = new Item($this->getMockedDriver(), array('test', 'key'));
     $stash->disable();
     $this->assertTrue($stash->isDisabled());
     $this->assertDisabledStash($stash);
 }