public function testDecrement() { $this->key->getRediska()->set($this->key->getName(), 123); $reply = $this->key->decrement(2); $this->assertEquals(121, $reply); $reply = $this->key->getRediska()->get($this->key->getName()); $this->assertEquals(121, $reply); }
public function decrement($key, $val = 1) { $Key = new Rediska_Key($key); $Key->setRediska($this->Rediska); return $Key->decrement($val); }