code: static function register(string $name, $data, bool $use_memcache = false) {
          if (isset(self::$_templates[$name])) {
              Console::warning("Register view \"$name\" failed. Already exists.");
              return;
          }
          if ($use_memcache) {
              self::$_templates[$name] = false;
              if (!Server::$memcached->set('view_'.$name, $data))
                  Console::warning("Failed to set memcached for view \"$name\".");
          } else
              self::$_templates[$name] = $data;
      }
docs: 注册视图
  
  @param string $name
  @param $data
  @param bool $use_memcache