Forum Discussion
Darren_Person_2
Nimbostratus
Jan 11, 2009RAMCACHE - 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!
- hoolio
Cirrostratus
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:
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