@Override
    public OneTimeTokenAccount get(final String username, final long id) {
        return get(username)
            .stream()
            .filter(account -> account.getId() == id)
            .findFirst()
            .orElse(null);
    }
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