public function testSetAndExpire() { $this->key->setAndExpire(123, 1); $reply = $this->key->getRediska()->get($this->key->getName()); $this->assertEquals(123, $reply); sleep(2); $reply = $this->key->getRediska()->get($this->key->getName()); $this->assertNull($reply); }