addcachepolicy

Use this method to creates an integrated caching policy.
The newly created policy is in inactive state. To activate the policy, use the bind cache global method.

Syntax



Parameters

policyname

Name for the policy. Must begin with an ASCII alphabetic or underscore (_) character, and must contain only ASCII alphanumeric, underscore, hash (#), period (.), space, colon (:), at (@), equals (=), and hyphen (-) characters. Can be changed after the policy is created.
This is mandatory parameter.

rule

Expression against which the traffic is evaluated. The following requirements apply only to the Citrix ADC CLI: * If the expression includes one or more spaces, enclose the entire expression in double quotation marks. * If the expression itself includes double quotation marks, escape the quotations by using the \ character. * Alternatively, you can use single quotation marks to enclose the rule, in which case you do not have to escape the double quotation marks.
This is mandatory parameter.

actioN

Action to apply to content that matches the policy. * CACHE or MAY_CACHE action - positive cachability policy * NOCACHE or MAY_NOCACHE action - negative cachability policy * INVAL action - Dynamic Invalidation Policy.
This is mandatory parameter.

storeingroup

Name of the content group in which to store the object when the final result of policy evaluation is CACHE. The content group must exist before being mentioned here. Use the "show cache contentgroup" method to view the list of existing content groups.

invalgroups

Content group(s) to be invalidated when the INVAL action is applied. Maximum number of content groups that can be specified is 16.

invalobjects

Content groups(s) in which the objects will be invalidated if the action is INVAL.

undefaction

Action to be performed when the result of rule evaluation is undefined.

Return Value

Returns simpleResult

See Also