@Override
    public Collection<? extends OneTimeTokenAccount> get(final String username) {
        val redisAccountKey = RedisCompositeKey.forPrincipals().withPrincipal(username).toKeyPattern();
        val accounts = casRedisTemplates.getPrincipalsRedisTemplate().boundSetOps(redisAccountKey).members();
        return Objects.requireNonNull(accounts)
            .stream()
            .filter(Objects::nonNull)
            .map(this::decode)
            .filter(Objects::nonNull)
            .collect(Collectors.toList());
    }
This is {@link RedisGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 6.1.0
support/cas-server-support-gauth-redis/src/main/java/org/apereo/cas/gauth/credential/RedisGoogleAuthenticatorTokenCredentialRepository.java