If compress is only set by aggregator config, then you don't need a cache key generator for this because config reloads automatically clear the aggregator cache.  You would only need this if the compress state could be changed via request parameters.  So it would be sufficient to use the TextModuleBuider's cache key generator.