slb template cache

RAM caching template

cache Specification

   
Type Collection
Object Key(s) name
Collection Name cache-list
Collection URI /axapi/v3/slb/template/cache
Element Name cache
Element URI /axapi/v3/slb/template/cache/{name}
Element Attributes cache_attributes
Schema cache schema

Operations Allowed:

OperationMethodURIPayload

Create Object

POST

/axapi/v3/slb/template/cache

cache attributes

Create List

POST

/axapi/v3/slb/template/cache

cache attributes

Get Object

GET

/axapi/v3/slb/template/cache/{name}

cache attributes

Get List

GET

/axapi/v3/slb/template/cache

cache-list

Modify Object

POST

/axapi/v3/slb/template/cache/{name}

cache attributes

Replace Object

PUT

/axapi/v3/slb/template/cache/{name}

cache attributes

Replace List

PUT

/axapi/v3/slb/template/cache

cache-list

Delete Object

DELETE

/axapi/v3/slb/template/cache/{name}

cache attributes

cache-list

cache-list is JSON List of cache attributes

cache-list : [

cache attributes

accept-reload-req

Description Accept reload requests via cache-control directives in HTTP headers

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

age

Description Specify duration in seconds cached content valid, default is 3600 seconds (seconds that the cached content is valid (default 3600 seconds))

Type: number

Range: 1-999999

Default: 3600

default-policy-nocache

Description Specify default policy to be to not cache

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

disable-insert-age

Description Disable insertion of age header in response served from RAM cache

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

disable-insert-via

Description Disable insertion of via header in response served from RAM cache

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

local-uri-policy

Type: List

logging

Description Specify logging template (Logging Config name)

Type: string

Format: string-rlx

Maximum Length: 127 characters

Maximum Length: 1 characters

Refernce Object: /axapi/v3/slb/template/logging

max-cache-size

Description Specify maximum cache size in megabytes, default is 80MB (RAM cache size in megabytes (default 80MB))

Type: number

Range: 1-4096

Default: 80

max-content-size

Description Maximum size (bytes) of response that can be cached - default 81920 (80KB)

Type: number

Range: 0-268435455

Default: 81920

min-content-size

Description Minimum size (bytes) of response that can be cached - default 512

Type: number

Range: 0-268435455

Default: 512

name

Description Specify cache template name

Type: string

Format: string-rlx

Maximum Length: 127 characters

Maximum Length: 1 characters

packet-capture-template

Description Name of the packet capture template to be bind with this object

Type: string

Maximum Length: 128 characters

Maximum Length: 1 characters

Refernce Object: /axapi/v3/visibility/packet-capture/object-templates/slb-tmpl-cache-tmpl

remove-cookies

Description Remove cookies in response and cache

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

replacement-policy

Description ‘LFU’: LFU;

Type: string

Supported Values: LFU

Default: LFU

sampling-enable

Type: List

uri-policy

Type: List

user-tag

Description Customized tag

Type: string

Format: string-rlx

Maximum Length: 127 characters

Maximum Length: 1 characters

uuid

Description uuid of the object

Type: string

Maximum Length: 64 characters

Maximum Length: 1 characters

verify-host

Description Verify request using host before sending response from RAM cache

Type: boolean

Supported Values: true, false, 1, 0

Default: 0

local-uri-policy

Specification  
Type list
Block object keys  

local-uri

Description Specify Local URI for caching (Specify URI pattern that the policy should be applied to, maximum 63 charaters)

Type: string

Format: string-rlx

Maximum Length: 63 characters

Maximum Length: 1 characters

sampling-enable

Specification  
Type list
Block object keys  

counters1

Description ‘all’: all; ‘hits’: Cache hits; ‘miss’: Cache misses; ‘bytes_served’: Bytes served from cache; ‘total_req’: Total requests received; ‘caching_req’: Total requests to cache; ‘nc_req_header’: nc_req_header; ‘nc_res_header’: nc_res_header; ‘rv_success’: rv_success; ‘rv_failure’: rv_failure; ‘ims_request’: ims_request; ‘nm_response’: nm_response; ‘rsp_type_CL’: rsp_type_CL; ‘rsp_type_CE’: rsp_type_CE; ‘rsp_type_304’: rsp_type_304; ‘rsp_type_other’: rsp_type_other; ‘rsp_no_compress’: rsp_no_compress; ‘rsp_gzip’: rsp_gzip; ‘rsp_deflate’: rsp_deflate; ‘rsp_other’: rsp_other; ‘nocache_match’: nocache_match; ‘match’: match; ‘invalidate_match’: invalidate_match; ‘content_toobig’: content_toobig; ‘content_toosmall’: content_toosmall; ‘entry_create_failures’: entry_create_failures; ‘mem_size’: mem_size; ‘entry_num’: entry_num; ‘replaced_entry’: replaced_entry; ‘aging_entry’: aging_entry; ‘cleaned_entry’: cleaned_entry; ‘rsp_type_stream’: rsp_type_stream; ‘header_save_error’: header_save_error;

Type: string

Supported Values: all, hits, miss, bytes_served, total_req, caching_req, nc_req_header, nc_res_header, rv_success, rv_failure, ims_request, nm_response, rsp_type_CL, rsp_type_CE, rsp_type_304, rsp_type_other, rsp_no_compress, rsp_gzip, rsp_deflate, rsp_other, nocache_match, match, invalidate_match, content_toobig, content_toosmall, entry_create_failures, mem_size, entry_num, replaced_entry, aging_entry, cleaned_entry, rsp_type_stream, header_save_error

uri-policy

Specification  
Type list
Block object keys  

cache-action

Description ‘cache’: Specify if certain URIs should be cached; ‘nocache’: Specify if certain URIs should not be cached;

Type: string

Supported Values: cache, nocache

cache-value

Description Specify seconds that content should be cached, default is age specified in cache template

Type: number

Range: 1-999999

invalidate

Description Specify if URI should invalidate cache entries matching pattern (pattern that would match entries to be invalidated (64 chars max))

Type: string

Format: string-rlx

Maximum Length: 128 characters

Maximum Length: 1 characters

uri

Description Specify URI for cache policy (Specify URI pattern that the policy should be applied to, maximum 63 charaters)

Type: string

Format: string-rlx

Maximum Length: 63 characters

Maximum Length: 1 characters

stats data

  Counter Size Description
       
  nm_response 2 nm_response
  rsp_type_304 2 rsp_type_304
  rsp_other 2 rsp_other
  content_toosmall 2 content_toosmall
  entry_create_failures 2 entry_create_failures
  nocache_match 2 nocache_match
  content_toobig 2 content_toobig
  nc_res_header 2 nc_res_header
  miss 2 Cache misses
  nc_req_header 2 nc_req_header
  replaced_entry 8 replaced_entry
  aging_entry 8 aging_entry
  mem_size 8 mem_size
  header_save_error 2 header_save_error
  rsp_deflate 2 rsp_deflate
  invalidate_match 2 invalidate_match
  match 2 match
  cleaned_entry 8 cleaned_entry
  entry_num 8 entry_num
  total_req 2 Total requests received
  bytes_served 2 Bytes served from cache
  rv_success 2 rv_success
  rv_failure 2 rv_failure
  rsp_gzip 2 rsp_gzip
  hits 2 Cache hits
  rsp_type_other 2 rsp_type_other
  rsp_type_CE 2 rsp_type_CE
  rsp_no_compress 2 rsp_no_compress
  rsp_type_CL 2 rsp_type_CL
  caching_req 2 Total requests to cache
  ims_request 2 ims_request
  rsp_type_stream 2 rsp_type_stream