/**
  * @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);
 }
Exemplo n.º 2
0
 public function delete()
 {
     return $this->backend->delete($this->key);
 }