Forum Discussion
Mike_62629
Nimbostratus
Apr 07, 2008Has anyone successfully used dicts in iRules?
Has anyone successfully used dicts in iRules?
I'm currently iterating through a loop doing string comparisons and think it may be a bit more efficient to do a single dictionary lookup instead. I w...
Dave_Whitla_254
Nimbostratus
Mar 11, 2011Actually - this may still be current:
From http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/342/iRules-101--15--TCL-List-Handling-Commands.aspx
...
TCL: List Handling Commands
Most of the TCL commands for use in manipulating lists are available in iRules:
list - Create a list
split - Split a string into a proper Tcl list
join - Create a string by joining together list elements
concat - Join lists together
llength - Count the number of elements in a list
lindex - Retrieve an element from a list
lrange - Return one or more adjacent elements from a list
linsert - Insert elements into a list
lreplace - Replace elements in a list with new elements
lsort - Sort the elements of a list
lsearch - See if a list contains a particular element
The remaining documented list handling commands, lrepeat, lreverse, & dict, are not available within iRules. We’ll cover the commands from above that get the most traffic here on the forums.
...
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects