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...
Nicolas_Menant
Employee
Apr 07, 2008Hi,
Why not creating a string class with all the extension you want to analyze and then do the following:
when HTTP_REQUEST {
if {[matchclass [HTTP::path] ends_with $::Extension ] } {
pool Cache-Pool
} else {
pool Application-Pool
}
}
where Extension is the name of your class
You can create a class in the Data group page.
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