public function testExists() { $reply = $this->set->exists(123); $this->assertFalse($reply); $this->rediska->addToSet('test', 123); $reply = $this->set->exists(123); $this->assertTrue($reply); }
/** * Does a queue already exist? * * Throws an exception if the adapter cannot determine if a queue exists. * use isSupported('isExists') to determine if an adapter can test for * queue existance. * * @param string $name * @return boolean */ public function isExists($name) { if (isset($this->_queueObjects[$name])) { return true; } else { return $this->_queues->exists($name); } }