All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dts.sdk.util.PlatformDependentUtil Maven / Gradle / Ivy

package com.github.dts.sdk.util;

public class PlatformDependentUtil {
    public static final Class REDIS_CONNECTION_FACTORY_CLASS;

    static {
        Class redisConnectionFactory;
        try {
            redisConnectionFactory = Class.forName("org.springframework.data.redis.connection.RedisConnectionFactory");
        } catch (Throwable e) {
            redisConnectionFactory = null;
        }
        REDIS_CONNECTION_FACTORY_CLASS = redisConnectionFactory;
    }

    public static boolean isSupportSpringframeworkRedis() {
        return REDIS_CONNECTION_FACTORY_CLASS != null;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy