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;
}
}