public static <K, V> CasRedisTemplate<K, V> newRedisTemplate(final RedisConnectionFactory connectionFactory) {
        val valueSerializer = new JdkSerializationRedisSerializer();
        return newRedisTemplate(connectionFactory, valueSerializer);
    }
New redis template.

@param <K>               the type parameter
@param <V>               the type parameter
@param connectionFactory the connection factory
@return the redis template
support/cas-server-support-redis-core/src/main/java/org/apereo/cas/redis/core/RedisObjectFactory.java