Support for a Cache Key Generator

resolve #259
Initial commit for Cache Key Generator.
Can you align the assignments?