/** * Memory peak metric * * @param string $key Something like: 'foo.bar' */ private function memory($key) { $this->client->memory($key); }
/** * @inheritdoc */ public function memory($key, $memory = null, $sampleRate = 1) { $this->client->memory($key, $memory, $sampleRate); }
/** * @group memory */ public function testMemory() { $this->client->memory('foo.bar'); $this->assertRegExp('/test\\.foo\\.bar:[0-9]{4,}|c/', $this->connection->getLastMessage()); }