/** * Loads data for the given key. * * @param string $key The store key * * @return string The data associated with the key */ private function load($key) { $this->client->createConnection(); $values = $this->client->get($key); $this->client->close(); return $values; }
public function testDelKey() { $client = new Client(array('host' => 'localhost')); $connection = $client->createConnection(); $this->assertTrue($connection); $client->set('testkey', '1234'); $client->del('testkey'); $result = $client->get('testkey'); $this->assertEquals(false, $result); }