RAMCACHE - Setting Content expiration

Hi All,

We utilize RAMCache heavily and would love to know if there is a workaround or upcoming feature fix. We would like to do the following:

For URI’s that contain a certain value (let’s say .20.), tell RAMCache to hold that object for 1 hour

ex: http:///some.20.html

For URI’s that contain a certain value (let’s say .2.), tell RAMCache to hold that object for 5 minutes

ex: http:///some.2.html

Right now, I can set this at a policy level, but I don’t see anyway to make this adjustment at a per URI or request level. Any thoughts or workaround would be greatly appreciated or if F5 could open up the Expires method for setting in an iRule!

You should be able to do this using CACHE::age to get the age of the cached object and CACHE::expire to clear the object from the cache. There is a Codeshare example which demonstrates this:

Using iRules to manipulate cache (Click here)

If you have questions, reply here. Else if you test a working example can you post it here and/or in the Codeshare?

Thanks,

Aaron