lock() public method

public lock ( $ttl = null )
 private function assertDisabledStash(Item $stash)
 {
     $this->assertFalse($stash->set('true'), 'storeData returns false for disabled cache');
     $this->assertNull($stash->get(), 'getData returns null for disabled cache');
     $this->assertFalse($stash->clear(), 'clear returns false for disabled cache');
     $this->assertTrue($stash->isMiss(), 'isMiss returns true for disabled cache');
     $this->assertFalse($stash->extendCache(), 'extendCache returns false for disabled cache');
     $this->assertTrue($stash->lock(100), 'lock returns true for disabled cache');
 }