@Override
    public GoogleAuthenticatorToken store(final GoogleAuthenticatorToken token) {
        token.assignIdIfNecessary();
        val redisKey = getGoogleAuthenticatorTokenRedisKey(token);
        LOGGER.trace("Saving token [{}] using key [{}]", token, redisKey);
        val ops = this.template.boundValueOps(redisKey);
        ops.set(token);
        ops.expire(Duration.ofSeconds(this.expireTokensInSeconds));
        LOGGER.trace("Saved token [{}]", token);
        return token;
    }
This is {@link GoogleAuthenticatorRedisTokenRepository}.

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