-
Notifications
You must be signed in to change notification settings - Fork 700
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
升级相关版本依赖 #116
base: master
Are you sure you want to change the base?
升级相关版本依赖 #116
Conversation
Kryo kryo = new Kryo(); | ||
registrations.forEach(reg -> reg.register(kryo)); | ||
return kryo; | ||
}).softReferences().build(); | ||
}).softReferences().build();*/ | ||
//FIXME 32够不够 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
尽量设计成可配置的
@@ -17,7 +16,6 @@ | |||
* | |||
* | |||
*/ | |||
@Slf4j |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个不能删除
@@ -43,7 +41,7 @@ public class SpringELParser extends AbstractScriptParser { | |||
hash = CacheUtil.class.getDeclaredMethod("getUniqueHashStr", new Class[]{Object.class}); | |||
empty = CacheUtil.class.getDeclaredMethod("isEmpty", new Class[]{Object.class}); | |||
} catch (NoSuchMethodException e) { | |||
log | |||
e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 log 输出
@@ -43,7 +41,7 @@ public class SpringELParser extends AbstractScriptParser { | |||
hash = CacheUtil.class.getDeclaredMethod("getUniqueHashStr", new Class[]{Object.class}); | |||
empty = CacheUtil.class.getDeclaredMethod("isEmpty", new Class[]{Object.class}); | |||
} catch (NoSuchMethodException e) { | |||
log | |||
e.printStackTrace(); | |||
} catch (SecurityException e) { | |||
e.printStackTrace(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用 log 输出
@@ -43,7 +41,7 @@ public class SpringELParser extends AbstractScriptParser { | |||
hash = CacheUtil.class.getDeclaredMethod("getUniqueHashStr", new Class[]{Object.class}); | |||
empty = CacheUtil.class.getDeclaredMethod("isEmpty", new Class[]{Object.class}); | |||
} catch (NoSuchMethodException e) { | |||
log | |||
e.printStackTrace(); | |||
} catch (SecurityException e) { | |||
e.printStackTrace(); | |||
} catch (Exception e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
使用log 输出
} | ||
|
||
@Override | ||
protected boolean setnx(String key, String val, int expire) { | ||
ShardedJedis shardedJedis = null; | ||
/*ShardedJedis shardedJedis = null; | ||
try { | ||
shardedJedis = shardedJedisPool.getResource(); | ||
Jedis jedis = shardedJedis.getShard(key); | ||
return OK.equalsIgnoreCase(jedis.set(key, val, SetParams.setParams().nx().ex(expire))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以删除这些代码
} | ||
} | ||
|
||
@Override | ||
protected void del(String key) { | ||
ShardedJedis shardedJedis = null; | ||
/*ShardedJedis shardedJedis = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以删除这些代码
|
||
@Override | ||
protected boolean setnx(String key, String val, int expire) { | ||
/*ShardedJedis shardedJedis = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
删除这些代码。
|
||
@Override | ||
protected void del(String key) { | ||
/*ShardedJedis shardedJedis = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以删除这些代码
} | ||
|
||
@Override | ||
public void hset(byte[] key, byte[] field, byte[] value, int seconds) { | ||
Jedis jedis = shardedJedis.getShard(key); | ||
/*Jedis jedis = shardedJedis.getShard(key); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这代码没实现,那不就不工作了。
} | ||
|
||
@Override | ||
public void mset(Collection<MSetParam> params) { | ||
ShardedJedisPipeline pipeline = new ShardedJedisPipeline(); | ||
/*ShardedJedisPipeline pipeline = new ShardedJedisPipeline(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这代码没实现,那不就不工作了。
} | ||
|
||
@Override | ||
public Map<CacheKeyTO, CacheWrapper<Object>> mget(Type returnType, Set<CacheKeyTO> keys) throws Exception { | ||
ShardedJedisPipeline pipeline = new ShardedJedisPipeline(); | ||
/*ShardedJedisPipeline pipeline = new ShardedJedisPipeline(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这代码没实现,那不就不工作了。
} | ||
|
||
@Override | ||
public void delete(Set<CacheKeyTO> keys) { | ||
ShardedJedisPipeline pipeline = new ShardedJedisPipeline(); | ||
/*ShardedJedisPipeline pipeline = new ShardedJedisPipeline(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这代码没实现,那不就不工作了。
No description provided.