|
@@ -42,14 +42,10 @@ public class ObjectRedisCacheProcessor {
|
|
|
* @param c
|
|
|
* @return
|
|
|
*/
|
|
|
- public static <T> T get(String keyPrefix, Object[] propKeys,
|
|
|
- Class<? extends RandomCacheBean> c) {
|
|
|
+ public static <T> T get(String keyPrefix, Object[] propKeys, Class<T> c) {
|
|
|
String key = keyPrefix + StringUtils.join(Arrays.asList(propKeys), '_');
|
|
|
-
|
|
|
- RandomCacheBean t = getRedisClient().get(key, c);
|
|
|
- @SuppressWarnings("unchecked")
|
|
|
- T ret = (T) t;
|
|
|
- return ret;
|
|
|
+ T t = getRedisClient().get(key, c);
|
|
|
+ return t;
|
|
|
}
|
|
|
|
|
|
/**
|