LocalLB::RAMCacheInformation::evict_ramcache_entry_v2¶
Prototype¶
evict_ramcache_entry_v2(
in LocalLB__RAMCacheInformation__RAMCacheKey [] keys,
in boolean exact_match
);
Parameters¶
Parameter | Type | Description |
keys | RAMCacheKey [] | The keys used to evict the RAM cache entries. |
exact_match | boolean | Whether to look for an exact match for host and uri. If exact, you must specify host and uri in the key. If non-exact, host and uri can be a subset of the text in a matched entry during the search. |
Exceptions¶
Exception | Description |
Common::AccessDenied | Raised if the client credentials are not valid. |
Common::InvalidArgument | Raised if one of the arguments is invalid. |
Common::OperationFailed | Raised if an operation error occurs. |
See Also¶
Warning
The links to the sample code below are remnants of the old DevCentral wiki and will result in a 404 error. For best results, please copy the link text and search the codeshare directly on DevCentral.
Sample Code¶
To clear all RAM Cache entries for a given profile, use the following python + bigsuds code. The key is to supply empty strings for the host_name and uri arguments and set exact_match to false. This makes the call match all entries for the supplied profile_name.
conn = bigsuds.BIGIP(hostname='10.1.1.1', username='myusername', password='mypassword')
conn.LocalLB.RAMCacheInformation.evict_ramcache_entry_v2(keys=[{'profile_name': 'my-http-caching-profile', 'host_name': '', 'uri': '', 'maximum_responses': 0}], exact_match = 0)
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.