Adds TMCache.

Signed-off-by: Daniel Thorpe <dan@blindingskies.com>