TN cache

Where does the TN stores the cache information? Is there any temporary location that it stores the results ? Or every time it hits the DB and gets the results… am interested in processing rules and document types perspective rather than conversation scripts…

thanks
DG