Forum Discussion
Hugh123
Nimbostratus
Aug 04, 2011c# get_ramcache_entry()
So I've been struggling attempting to call the get_ramcache_entry() from my c application. Specifically, I'm unsure what I should be passing to the function to get the information out. I've tried sett...
Hugh123
Nimbostratus
Aug 09, 2011Hi sir,
We figured this out, with the great wonder that is dubdub. I was instantiating the keys incorrectly, which was causing the error. While we did have to use the evict_ramcache_entry_v2 method due to the original one being deprecated, we were able to get this to work to specify which http_profile we wanted to clear the cache for.
LocalLBRAMCacheInformationRAMCacheKey prof_key = new LocalLBRAMCacheInformationRAMCacheKey();
LocalLBRAMCacheInformationRAMCacheKey[] keys = new LocalLBRAMCacheInformationRAMCacheKey[] { prof_key };
Interfaces m_interfaces = new Interfaces();
m_interfaces.initialize(ipAddress, user, pass);
prof_key.host_name = "";
prof_key.maximum_responses = 500;
prof_key.profile_name = "";
prof_key.uri = "";
m_interfaces.LocalLBRAMCacheInformation.evict_ramcache_entry_v2(keys, false);
Thanks for your help!
Matt
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