@RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Bean
    @ConditionalOnMissingBean(name = "redisPrincipalsGoogleAuthenticatorTemplate")
    public CasRedisTemplate redisPrincipalsGoogleAuthenticatorTemplate(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("redisGoogleAuthenticatorConnectionFactory")
        final RedisConnectionFactory redisGoogleAuthenticatorConnectionFactory) {
        return BeanSupplier.of(CasRedisTemplate.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> RedisObjectFactory.newRedisTemplate(redisGoogleAuthenticatorConnectionFactory))
            .otherwiseProxy()
            .get();
    }
This is {@link CasGoogleAuthenticatorRedisAutoConfiguration}.

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