.. _slb_template_cache: slb template cache ================== RAM caching template cache Specification ------------------- ===================================== ================================================================== ===================================== ================================================================== **Type** *Collection* **Object Key(s)** *name* **Collection Name** :ref:`2003_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** :download:`cache schema ` ===================================== ================================================================== **Operations Allowed:** .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html .. raw:: html
OperationMethodURIPayload
Create Object .. raw:: html POST .. raw:: html /axapi/v3/slb/template/cache .. raw:: html :ref:`2003_cache_attributes` .. raw:: html
Create List .. raw:: html POST .. raw:: html /axapi/v3/slb/template/cache .. raw:: html :ref:`2003_cache_attributes` .. raw:: html
Get Object .. raw:: html GET .. raw:: html /axapi/v3/slb/template/cache/{name} .. raw:: html :ref:`2003_cache_attributes` .. raw:: html
Get List .. raw:: html GET .. raw:: html /axapi/v3/slb/template/cache .. raw:: html :ref:`2003_cache_list` .. raw:: html
Modify Object .. raw:: html POST .. raw:: html /axapi/v3/slb/template/cache/{name} .. raw:: html :ref:`2003_cache_attributes` .. raw:: html
Replace Object .. raw:: html PUT .. raw:: html /axapi/v3/slb/template/cache/{name} .. raw:: html :ref:`2003_cache_attributes` .. raw:: html
Replace List .. raw:: html PUT .. raw:: html /axapi/v3/slb/template/cache .. raw:: html :ref:`2003_cache_list` .. raw:: html
Delete Object .. raw:: html DELETE .. raw:: html /axapi/v3/slb/template/cache/{name} .. raw:: html :ref:`2003_cache_attributes` .. raw:: html
.. _2003_cache_list: cache-list ---------- cache-list is **JSON List** of :ref:`2003_cache_attributes` cache-list : [ { :ref:`2003_cache_attributes` }, { :ref:`2003_cache_attributes` }, ... ] .. _2003_cache_attributes: 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:** :doc:`/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:** :doc:`/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 .. _2003_local-uri-policy: 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 .. _2003_sampling-enable: sampling-enable ^^^^^^^^^^^^^^^ =============================== =================================================== **Specification** =============================== =================================================== **Type** *list* **Block object keys** =============================== =================================================== **counters1** **Description** 'all': all; 'hits': hits; 'miss': miss; 'bytes_served': bytes_served; 'total_req': total_req; 'caching_req': caching_req; '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; **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 .. _2003_uri-policy: 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 .. _2003_stats_data: stats data ---------- .. list-table:: :widths: 10 20 30 80 :header-rows: 2 :stub-columns: 1 * - - 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