Github user jacksontj commented on the pull request: https://github.com/apache/trafficserver/pull/526#issuecomment-197011767 I don't think we can ever gaurantee that there will always be space available, and since we already evict when we need space, we should just keep doing that IMO. I think we should basically do 1, but specifically as an atomic insert. Right now we are inserting N (usually 2-3) items into MultiCache. Instead we could allocate all of the space up front, and insert just a single item-- this way we are atomic with our objects in cache.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---