|
@@ -1,6 +1,7 @@
|
|
|
package cn.com.qmth.examcloud.support.cache;
|
|
|
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.AppCacheBean;
|
|
|
+import cn.com.qmth.examcloud.support.cache.bean.SysPropertyCacheBean;
|
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
|
import cn.com.qmth.examcloud.web.support.SpringContextHolder;
|
|
|
|
|
@@ -20,4 +21,9 @@ public class CacheHelper {
|
|
|
return getRedisClient().get(key, AppCacheBean.class);
|
|
|
}
|
|
|
|
|
|
+ public static SysPropertyCacheBean getSysProperty(String propKey) {
|
|
|
+ String key = "$_SYS_PROP:" + propKey;
|
|
|
+ return getRedisClient().get(key, SysPropertyCacheBean.class);
|
|
|
+ }
|
|
|
+
|
|
|
}
|