Class: TencentCloud::Cdn::V20180606::SimpleCacheRule

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(cachetype = nil, cachecontents = nil, cachetime = nil) ⇒ SimpleCacheRule

Returns a new instance of SimpleCacheRule.



12865
12866
12867
12868
12869
# File 'lib/v20180606/models.rb', line 12865

def initialize(cachetype=nil, cachecontents=nil, cachetime=nil)
  @CacheType = cachetype
  @CacheContents = cachecontents
  @CacheTime = cachetime
end

Instance Attribute Details

#CacheContentsObject

all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 单位为秒,最大可设置为 365 天

Parameters:

  • CacheType:

    规则类型:

  • CacheContents:

    CacheType 对应类型下的匹配内容:

  • CacheTime:

    缓存过期时间设置



12863
12864
12865
# File 'lib/v20180606/models.rb', line 12863

def CacheContents
  @CacheContents
end

#CacheTimeObject

all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 单位为秒,最大可设置为 365 天

Parameters:

  • CacheType:

    规则类型:

  • CacheContents:

    CacheType 对应类型下的匹配内容:

  • CacheTime:

    缓存过期时间设置



12863
12864
12865
# File 'lib/v20180606/models.rb', line 12863

def CacheTime
  @CacheTime
end

#CacheTypeObject

all:所有文件生效file:指定文件后缀生效directory:指定路径生效path:指定绝对路径生效index:首页all 时填充 * file 时填充后缀名,如 jpg、txt directory 时填充路径,如 /xxx/test path 时填充绝对路径,如 /xxx/test.html index 时填充 / 单位为秒,最大可设置为 365 天

Parameters:

  • CacheType:

    规则类型:

  • CacheContents:

    CacheType 对应类型下的匹配内容:

  • CacheTime:

    缓存过期时间设置



12863
12864
12865
# File 'lib/v20180606/models.rb', line 12863

def CacheType
  @CacheType
end

Instance Method Details

#deserialize(params) ⇒ Object



12871
12872
12873
12874
12875
# File 'lib/v20180606/models.rb', line 12871

def deserialize(params)
  @CacheType = params['CacheType']
  @CacheContents = params['CacheContents']
  @CacheTime = params['CacheTime']
end