Interface ExternalCmdCacheSetting

All Known Subinterfaces:
ExternalCmdCache

public interface ExternalCmdCacheSetting
External server cache configuration interface.
Author:
渔民小镇
date:
2023-07-02
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    addCmd(int cmd)
    Adds a route range cache using the default configuration.
    default void
    addCmd(int cmd, int subCmd)
    Adds a route cache using the default configuration.
    void
    addCmd(int cmd, int subCmd, CmdCacheOption cmdCacheOption)
    Adds a route cache with a specified configuration.
    void
    addCmd(int cmd, CmdCacheOption cmdCacheOption)
    Adds a route range cache with a specified configuration.
    Gets the default configuration for the external server cache.
    void
    Sets the default configuration for the external server cache.
  • Method Details

    • setCmdCacheOption

      void setCmdCacheOption(CmdCacheOption option)
      Sets the default configuration for the external server cache.
      Parameters:
      option - Configuration
    • getCmdCacheOption

      CmdCacheOption getCmdCacheOption()
      Gets the default configuration for the external server cache.
      Returns:
      Configuration
    • addCmd

      void addCmd(int cmd, CmdCacheOption cmdCacheOption)
      Adds a route range cache with a specified configuration.
      Parameters:
      cmd - Main route
      cmdCacheOption - Configuration
    • addCmd

      default void addCmd(int cmd)
      Adds a route range cache using the default configuration.
      Parameters:
      cmd - Main route
    • addCmd

      void addCmd(int cmd, int subCmd, CmdCacheOption cmdCacheOption)
      Adds a route cache with a specified configuration.
      Parameters:
      cmd - Main route
      subCmd - Sub-route
      cmdCacheOption - Configuration
    • addCmd

      default void addCmd(int cmd, int subCmd)
      Adds a route cache using the default configuration.
      Parameters:
      cmd - Main route
      subCmd - Sub-route