@Override
    public String forPrefixAndId(final String prefix, final String ticketId) {
        return RedisCompositeKey.builder()
            .namespace(this.namespace)
            .prefix(prefix)
            .id(ticketId)
            .build()
            .toString();
    }
This is {@link DefaultRedisKeyGenerator}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-redis-ticket-registry/src/main/java/org/apereo/cas/ticket/registry/key/DefaultRedisKeyGenerator.java