Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
Häufig verwendete Methoden
public function testExpiredLock() { //1 second ttl $this->object = new Memcache($this->memcacheConn, 1); $this->object->acquireLock('foo'); sleep(2); //two seconds have elapsed - we should be able to lock again $this->assertTrue($this->object->acquireLock('foo')); }