public RedisKeyGeneratorFactory registerRedisKeyGenerator(final RedisKeyGenerator generator) {
        keyGeneratorMap.put(generator.getPrefix(), generator);
        return this;
    }
Register redis key generator.

@param generator the generator
@return the redis key generator factory
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/key/RedisKeyGeneratorFactory.java