Class: TencentCloud::Cdn::V20180606::CacheConfig

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180606/models.rb

Overview

启发式自定义时间缓存配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(heuristiccachetimeswitch = nil, heuristiccachetime = nil) ⇒ CacheConfig

Returns a new instance of CacheConfig.



2106
2107
2108
2109
# File 'lib/v20180606/models.rb', line 2106

def initialize(heuristiccachetimeswitch=nil, heuristiccachetime=nil)
  @HeuristicCacheTimeSwitch = heuristiccachetimeswitch
  @HeuristicCacheTime = heuristiccachetime
end

Instance Attribute Details

#HeuristicCacheTimeObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • HeuristicCacheTimeSwitch:

    启发式自定义时间缓存配置开关,取值有:

  • HeuristicCacheTime:

    单位 秒.



2104
2105
2106
# File 'lib/v20180606/models.rb', line 2104

def HeuristicCacheTime
  @HeuristicCacheTime
end

#HeuristicCacheTimeSwitchObject

on:开启 off:关闭 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • HeuristicCacheTimeSwitch:

    启发式自定义时间缓存配置开关,取值有:

  • HeuristicCacheTime:

    单位 秒.



2104
2105
2106
# File 'lib/v20180606/models.rb', line 2104

def HeuristicCacheTimeSwitch
  @HeuristicCacheTimeSwitch
end

Instance Method Details

#deserialize(params) ⇒ Object



2111
2112
2113
2114
# File 'lib/v20180606/models.rb', line 2111

def deserialize(params)
  @HeuristicCacheTimeSwitch = params['HeuristicCacheTimeSwitch']
  @HeuristicCacheTime = params['HeuristicCacheTime']
end