@Override
    public Collection<? extends OneTimeTokenAccount> load() {
        val keyPattern = RedisCompositeKey.forAccounts().toKeyPattern();
        val accounts = casRedisTemplates.getAccountsRedisTemplate().keys(keyPattern);
        return Objects.requireNonNull(accounts)
            .stream()
            .map(redisKey -> casRedisTemplates.getAccountsRedisTemplate().boundValueOps(redisKey).get())
            .filter(Objects::nonNull)
            .map(this::decode)
            .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