protected function generateKey($key) { return $this->namespace . md5(is_scalar($key) ? $key : serialize($key)); }