CallBacks / Reap Listener
I've just uploaded a new build of the CacheBox core framework including a new version of the cacheboxagent.cfc and modifications to the service. These changes add support for a callback to your application when content is deleted or reaped from the cache, which Mark Mandel needed to integrate it with Transfer. This adds a new "ReapListener" init argument to the cacheboxagent.cfc following the "evict" argument, which accepts a CFC object. This object must have a single "ReapCache" method like this:
<cffunction name="init" access="public" output="false">
<cfreturn this />
</cffunction>
<cffunction name="ReapCache" access="public" output="false">
<cfargument name="cachename" type="string" required="true" />
<cfargument name="content" type="any" required="true" />
<!--- execute clean-up code here --->
</cffunction>
</cfcomponent>
