Support for a Cache Key Generator

resolve #259
Initial commit for Cache Key Generator.
Last addition: cast to `(string)` here