slb template cache¶
RAM caching template
cache Specification¶
Type
Collection
Object Key(s)
name
Collection Name
Collection URI
/axapi/v3/slb/template/cache
Element Name
cache
Element URI
/axapi/v3/slb/template/cache/{name}
Element Attributes
cache_attributes
Schema
Operations Allowed:
Operation | Method | URI | Payload | |
---|---|---|---|---|
Create Object | POST | /axapi/v3/slb/template/cache | ||
Create List | POST | /axapi/v3/slb/template/cache | ||
Get Object | GET | /axapi/v3/slb/template/cache/{name} | ||
Get List | GET | /axapi/v3/slb/template/cache | ||
Modify Object | POST | /axapi/v3/slb/template/cache/{name} | ||
Replace Object | PUT | /axapi/v3/slb/template/cache/{name} | ||
Replace List | PUT | /axapi/v3/slb/template/cache | ||
Delete Object | DELETE | /axapi/v3/slb/template/cache/{name} |
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
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
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
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 |
|
rsp_br |
2 |
rsp_br |
|
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 |