public String toKeyPattern() {
        return String.format("%s:%s", prefix, query);
    }
To key pattern string.

@return the string
support/cas-server-support-gauth-redis/src/main/java/org/apereo/cas/gauth/RedisCompositeKey.java