@Override
    public OneTimeTokenAccount get(final long id) {
        val redisAccountKey = RedisCompositeKey.forAccounts().withAccount(id).toKeyPattern();
        val account = casRedisTemplates.getAccountsRedisTemplate().boundValueOps(redisAccountKey).get();
        return account != null ? decode(account) : 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