NetScaler Data Index The difference between a string map and a pattern set
The establishment of an index or subset in the
NetScaler is undoubtedly a very good idea to decouple the related transactions before and after, which can greatly reduce the modification of the late strategy, simplify the management and reduce the user's usage threshold. Even if the administrator does not often operate netscaler but occasionally changes the policy requirements, you just have to tell him to change a local file to complete a number of policy updates, without requiring him to understand the complex strategic logic relationship. In NetScaler, there are data set, pattern set, string map, and so on to provide a subset of properties for different purposes for operation. Let's talk about two of these string-related types first.
The following is a description of these two parameters in the manual:
String Maps is similar in structure to pattern sets (a pattern set defines a mapping of index Val UEs to Strings; A string map defines a mapping of strings to strings) and the configuration commands for string maps (commands such as add , bind, Unbind, remove, and show) is syntactically similar to the configuration commands for pattern sets. Also, as with index values in a pattern set, each key in a string map must is unique across the map. The following table illustrates a string map called Url_string_map, which contains URLs as keys and values. The
String map has many similarities to the pattern set, and the numeric value of string map appears in a one-to-one situation, and can be used on a strict one-to-one substitution of
, and the pattern set identifies the string as an index. Suitable for the selection of key points rather than replacements, if you want to use as a replacement can only do one or many more to replace, can not be accurate to a single. The good thing is that it has an index that can be used to develop more applications by selecting the index values in the policy.
Test examples:
To apply a string map to the responder test action
Test results:
Enter/test in the URL
Matching string map will be replaced by
and input/CJ
Still matches sting map but is replaced by
If you use the usual approach, you can only implement it through multiple policies.
Action
Policy
The pattern set does not implement the above function, because the pattern set in this environment is a multiple-to-one situation, the/test and/CJ are replaced by/b/index.php
NetScaler Data Index The difference between a string map and a pattern set