/** * @depends test_setIfNotExists_ShouldAlsoNotWork_IfTryingToSetDifferentValue */ public function test_setIfNotExists_ShouldWork_AsSoonAsKeyWasDeleted() { $this->redis->delete($this->key); $success = $this->redis->setIfNotExists($this->key, 'another val', 60); $this->assertTrue($success); }
public function delete() { return $this->backend->delete($this->key); }