Skip to content

Conversation

@gundamff
Copy link
Contributor

No description provided.

return kryo;
}).softReferences().build();
}).softReferences().build();*/
//FIXME 32够不够
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

尽量设计成可配置的

*
*
*/
@Slf4j
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个不能删除

empty = CacheUtil.class.getDeclaredMethod("isEmpty", new Class[]{Object.class});
} catch (NoSuchMethodException e) {
log
e.printStackTrace();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 log 输出

log
e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用 log 输出

e.printStackTrace();
} catch (SecurityException e) {
e.printStackTrace();
} catch (Exception e) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

使用log 输出

try {
shardedJedis = shardedJedisPool.getResource();
Jedis jedis = shardedJedis.getShard(key);
return OK.equalsIgnoreCase(jedis.set(key, val, SetParams.setParams().nx().ex(expire)));
Copy link
Owner

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;
Copy link
Owner

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;
Copy link
Owner

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;
Copy link
Owner

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);
Copy link
Owner

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();
Copy link
Owner

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();
Copy link
Owner

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();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这代码没实现,那不就不工作了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants