TSCACHEREMOVE(3ts)

πŸ“¦
version 9.2.5 Β· 4 versions
, in ubuntu noble, ubuntu questing

✨ NAME ✨

TSCacheRemove β€” bestie, it's the TSCacheRemove API function πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <ts/ts.h>

TSAction TSCacheRemove(TSCont contp, TSCacheKey key)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so listen. TSCacheRemove takes the object that matches key and yeets it straight out of the cache. gone. not invited to the group chat anymore. periodt πŸ’€

and here's the callback tea, because the cache is gonna text contp back either way:

  • if the object got removed successfully, the cache calls contp back with the event TS_EVENT_CACHE_REMOVE πŸŽ‰
  • if the object wasn't even in the cache to begin with, the cache calls contp back with the event TS_EVENT_CACHE_REMOVE_FAILED 😭

in both of these callbacks, you (the contp bestie) literally don't have to do anything. no cap. you don't get any vconnection from the cache either, because there's no data that needs to be transferred β€” it's giving zero effort required, as it should be ✨

and one more thing: when the cache calls contp back with TS_EVENT_CACHE_REMOVE, the remove has already been committed. like it's done done. don't second-guess it 🫢


2026, dev@trafficserver.apache.org


and that's the whole page, bestie β€” no notes, we ate πŸ’–

this little masterpiece is living in the Apache Traffic Server manual, version 9.2, dated Feb 12, 2026, filed under TSCACHEREMOVE(3ts) 🌸 iykyk 🧚

πŸ“¦ where this page comes from