TSCACHEREMOVE(3ts)
β¨ 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
contpback with the eventTS_EVENT_CACHE_REMOVEπ - if the object wasn't even in the cache to begin with, the cache calls
contpback with the eventTS_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 π«Ά
π COPYRIGHT π
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
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms