{ "id":"/axapi/v3/slb/template/cache/{name}", "type":"object", "node-type":"list", "title":"cache", "partition-visibility":"shared", "description":"RAM caching template", "properties":{ "name":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Specify cache template name", "optional":false }, "accept-reload-req":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Accept reload requests via cache-control directives in HTTP headers", "optional":true }, "age":{ "type":"number", "format":"number", "minimum":1, "maximum":999999, "default":3600, "partition-visibility":"shared", "description":"Specify duration in seconds cached content valid, default is 3600 seconds (seconds that the cached content is valid (default 3600 seconds))", "optional":true }, "default-policy-nocache":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Specify default policy to be to not cache", "optional":true }, "disable-insert-age":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Disable insertion of age header in response served from RAM cache", "optional":true }, "disable-insert-via":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Disable insertion of via header in response served from RAM cache", "optional":true }, "max-cache-size":{ "type":"number", "format":"number", "minimum":1, "maximum":4096, "default":80, "partition-visibility":"shared", "description":"Specify maximum cache size in megabytes, default is 80MB (RAM cache size in megabytes (default 80MB))", "optional":true }, "min-content-size":{ "type":"number", "format":"number", "minimum":0, "maximum":268435455, "default":512, "partition-visibility":"shared", "description":"Minimum size (bytes) of response that can be cached - default 512", "optional":true }, "max-content-size":{ "type":"number", "format":"number", "minimum":0, "maximum":268435455, "default":81920, "partition-visibility":"shared", "description":"Maximum size (bytes) of response that can be cached - default 81920 (80KB)", "optional":true }, "local-uri-policy":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "local-uri":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"Specify Local URI for caching (Specify URI pattern that the policy should be applied to, maximum 63 charaters)" } } } ] }, "uri-policy":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "uri":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":63, "partition-visibility":"shared", "description":"Specify URI for cache policy (Specify URI pattern that the policy should be applied to, maximum 63 charaters)" }, "cache-action":{ "type":"string", "format":"enum", "partition-visibility":"shared", "description":"'cache': Specify if certain URIs should be cached; 'nocache': Specify if certain URIs should not be cached; ", "enum":[ "cache", "nocache" ] }, "cache-value":{ "type":"number", "format":"number", "minimum":1, "maximum":999999, "partition-visibility":"shared", "description":"Specify seconds that content should be cached, default is age specified in cache template" }, "invalidate":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":128, "partition-visibility":"shared", "description":"Specify if URI should invalidate cache entries matching pattern (pattern that would match entries to be invalidated (64 chars max))" } } } ] }, "remove-cookies":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Remove cookies in response and cache", "optional":true }, "replacement-policy":{ "type":"string", "format":"enum", "default":"LFU", "partition-visibility":"shared", "description":"'LFU': LFU; ", "enum":[ "LFU" ], "optional":true }, "logging":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "$ref":"/axapi/v3/slb/template/logging", "description":"Specify logging template (Logging Config name)", "optional":true }, "verify-host":{ "type":"number", "format":"flag", "default":0, "partition-visibility":"shared", "description":"Verify request using host before sending response from RAM cache", "optional":true }, "uuid":{ "type":"string", "format":"string", "minLength":1, "maxLength":64, "partition-visibility":"shared", "modify-not-allowed":1, "description":"uuid of the object", "optional":true }, "user-tag":{ "type":"string", "format":"string-rlx", "minLength":1, "maxLength":127, "partition-visibility":"shared", "description":"Customized tag", "optional":true }, "sampling-enable":{ "type":"array", "minItems":1, "items":{ "type":"object" }, "uniqueItems":true, "array":[ { "properties":{ "counters1":{ "type":"string", "format":"enum", "partition-visibility":"shared", "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': slbTemplateCacheNcReqHeader, help nc_req_header; 'nc_res_header': slbTemplateCacheNcResHeader, help nc_res_header; 'rv_success': rv_success; 'rv_failure': slbTemplateCacheRvFailure, help 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': slbTemplateCacheContentToobig, help content_toobig; 'content_toosmall': slbTemplateCacheContentToosmall, help content_toosmall; 'entry_create_failures': slbTemplateCacheEntryCreateFailures, help 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; 'rsp_br': rsp_br; ", "enum":[ "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", "rsp_br" ] } } } ] }, "packet-capture-template":{ "type":"string", "format":"string", "minLength":1, "maxLength":128, "partition-visibility":"shared", "$ref":"/axapi/v3/visibility/packet-capture/object-templates/slb-templ-cache-tmpl", "description":"Name of the packet capture template to be bind with this object", "optional":true } }, "object-keys":[ "name" ], "required":[ "name" ] }