added datatemplate for update*caches

Please put this logic into a separate helper class, as well as the verifyType methods.  My understanding is that you don't need to specify the transcoder, you just need to cast the String velocity produces to the correct type.  So if you put the casting logic into a separate class, the cache.set becomes one line again.