Enable the cache key to be templated.