Delay Video Input

Hi
Not sure at all what is possible with TouchDesigner but I have a client request to create a 2-3 second video delay of a masked video (video with alpha) feed(from a webcam).

I am going to create this masked video input using Kinect and background substitution method so the person is isolated from the background using depth based masking.

I was thinking I might be able to feed this video to TouchDesigner which will display the unaltered Live RGB video in the background.
I can use this Unity plugin to accomplish the communication from Unity to TouchDesigner github.com/keijiro/KlakSpout

The challenge for me is how do I delay the masked video input 2-3 seconds?
Does TouchDesigner have the ability to somehow buffer input video?
Can anyone point me to relevant tutorials?

Cache TOP can be used to buffer and delay video